Skip to content

Commit

Permalink
Work around presets ignoring excluded tag args
Browse files Browse the repository at this point in the history
  • Loading branch information
greglittlefield-wf committed Oct 10, 2024
1 parent 5412fef commit 922d535
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dart_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ jobs:
DART_VERSION="${{ steps.setup-dart.outputs.dart-version }}"
TEST_ARGS=""
if [[ "$DART_VERSION" =~ ^3 ]]; then
TEST_ARGS="--exclude-tags=dart-2-only"
TEST_ARGS="--preset=no-dart-2"
fi
dart test -P vm $TEST_ARGS
dart test --preset vm $TEST_ARGS
if: always() && steps.install.outcome == 'success' && steps.build.outcome == 'success'

- name: Run tests (DDC)
Expand Down Expand Up @@ -156,9 +156,9 @@ jobs:
DART_VERSION="${{ steps.setup-dart.outputs.dart-version }}"
TEST_ARGS=""
if [[ "$DART_VERSION" =~ ^3 ]]; then
TEST_ARGS="--exclude-tags=dart-2-only"
TEST_ARGS="--preset=no-dart-2"
fi
dart test -p vm $TEST_ARGS -- test/vm_tests/builder
dart test --preset vm $TEST_ARGS -- test/vm_tests/builder
analyzer_plugin:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions dart_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ presets:
paths:
- test/vm_tests/

no-dart-2:
exclude_tags: dart-2-only

dartdevc:
exclude_tags: no-ddc
paths:
Expand Down

0 comments on commit 922d535

Please sign in to comment.