Skip to content

Commit 563008f

Browse files
ChrisJollyAUgithub-actions
andauthored
Don't run certain tests in CI (#278)
* dont run migrationstest in CI * fix IsCI * remove non ci tests from green file * try fix token * [GitHub Actions] Update green tests. * more tests * [GitHub Actions] Update green tests. --------- Co-authored-by: github-actions <[email protected]>
1 parent e3c8435 commit 563008f

File tree

8 files changed

+106
-383
lines changed

8 files changed

+106
-383
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ env:
99
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1010
DOTNET_CLI_TELEMETRY_OPTOUT: true
1111
DOTNET_NOLOGO: true
12+
PIPELINE_WORKSPACE: true
1213
checkoutFetchDepth: 2
1314
buildConfiguration: 'Debug'
1415
skipTests: false

.github/workflows/push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1313
DOTNET_CLI_TELEMETRY_OPTOUT: true
1414
DOTNET_NOLOGO: true
15+
PIPELINE_WORKSPACE: true
1516
checkoutFetchDepth: 1
1617
buildConfiguration: 'Debug'
1718
skipTests: false

test/EFCore.Jet.FunctionalTests/GreenTests/ace_2010_odbc_x86.txt

Lines changed: 32 additions & 185 deletions
Large diffs are not rendered by default.

test/EFCore.Jet.FunctionalTests/GreenTests/ace_2010_oledb_x86.txt

Lines changed: 46 additions & 185 deletions
Large diffs are not rendered by default.

test/EFCore.Jet.FunctionalTests/Migrations/MigrationsJetTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
namespace EntityFrameworkCore.Jet.FunctionalTests.Migrations;
3131

32+
[JetCondition(JetCondition.IsNotCI)]
3233
public class MigrationsJetTest : MigrationsTestBase<MigrationsJetTest.MigrationsJetFixture>
3334
{
3435
protected static string EOL

test/EFCore.Jet.FunctionalTests/Query/TPCGearsOfWarQueryJetTest.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11932,15 +11932,21 @@ public override async Task Where_DateOnly_FromDateTime_compared_to_property(bool
1193211932

1193311933
public override async Task Where_DateOnly_FromDateTime_compared_to_constant_and_parameter(bool async)
1193411934
{
11935-
await base.Where_DateOnly_FromDateTime_compared_to_constant_and_parameter(async);
11935+
//await base.Where_DateOnly_FromDateTime_compared_to_constant_and_parameter(async);
11936+
11937+
var prm = new DateOnly(102, 10, 11);
11938+
11939+
await AssertQuery(
11940+
async,
11941+
ss => ss.Set<CogTag>().Where(x => new[] { prm, new DateOnly(115, 3, 7) }.Contains(DateOnly.FromDateTime(x.IssueDate))));
1193611942

1193711943
AssertSql(
11938-
"""
11939-
@__prm_0='10/11/0002' (DbType = Date)
11944+
$"""
11945+
@__prm_0='0102-10-11T00:00:00.0000000' (DbType = Date)
1194011946

11941-
SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[IssueDate], [t].[Note]
11942-
FROM [Tags] AS [t]
11943-
WHERE CAST([t].[IssueDate] AS date) IN (@__prm_0, '0015-03-07')
11947+
SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note`
11948+
FROM `Tags` AS `t`
11949+
WHERE `t`.`IssueDate` IN ({AssertSqlHelper.Parameter("@__prm_0")}, #0115-03-07#)
1194411950
""");
1194511951
}
1194611952

test/EFCore.Jet.FunctionalTests/Query/TPTGearsOfWarQueryJetTest.cs

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9625,15 +9625,21 @@ public override async Task Where_DateOnly_FromDateTime_compared_to_property(bool
96259625

96269626
public override async Task Where_DateOnly_FromDateTime_compared_to_constant_and_parameter(bool async)
96279627
{
9628-
await base.Where_DateOnly_FromDateTime_compared_to_constant_and_parameter(async);
9628+
//await base.Where_DateOnly_FromDateTime_compared_to_constant_and_parameter(async);
9629+
9630+
var prm = new DateOnly(102, 10, 11);
9631+
9632+
await AssertQuery(
9633+
async,
9634+
ss => ss.Set<CogTag>().Where(x => new[] { prm, new DateOnly(115, 3, 7) }.Contains(DateOnly.FromDateTime(x.IssueDate))));
96299635

96309636
AssertSql(
9631-
"""
9632-
@__prm_0='10/11/0002' (DbType = Date)
9637+
$"""
9638+
@__prm_0='0102-10-11T00:00:00.0000000' (DbType = Date)
96339639
9634-
SELECT [t].[Id], [t].[GearNickName], [t].[GearSquadId], [t].[IssueDate], [t].[Note]
9635-
FROM [Tags] AS [t]
9636-
WHERE CAST([t].[IssueDate] AS date) IN (@__prm_0, '0015-03-07')
9640+
SELECT `t`.`Id`, `t`.`GearNickName`, `t`.`GearSquadId`, `t`.`IssueDate`, `t`.`Note`
9641+
FROM `Tags` AS `t`
9642+
WHERE `t`.`IssueDate` IN ({AssertSqlHelper.Parameter("@__prm_0")}, #0115-03-07#)
96379643
""");
96389644
}
96399645

test/EFCore.Jet.FunctionalTests/TestUtilities/JetConditionAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public ValueTask<bool> IsMetAsync()
2323
isMet &= !TestEnvironment.IsCI;
2424
}
2525

26-
return new ValueTask<bool>(isMet);
26+
return ValueTask.FromResult(isMet);
2727
}
2828

2929
public string SkipReason =>

0 commit comments

Comments
 (0)