Skip to content

Commit

Permalink
Update workflows to ensure backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lamnhan066 committed Oct 27, 2024
1 parent 859b83a commit 7db44ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:

- name: Recompile Workers
run: |
dart run isolate_manager:generate -i test -o test
dart run isolate_manager:generate -i test -o test --worker-mappings-experiment=test/isolate_manager_test.dart
dart run isolate_manager:generate -i test -o test --worker-mappings-experiment=test/isolate_manager_shared_test.dart
dart run isolate_manager:generate -i test -o test/workers
- name: Run tests on VM
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/tests_v6.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
- name: Analyze
run: dart analyze

- name: Compile Workers
- name: Run tests on Chrome for the old Workers
run: dart test --platform=chrome

- name: Recompile Workers
run: |
dart run isolate_manager:generate -i test -o test
dart run isolate_manager:generate -i test -o test --worker-mappings-experiment=test/isolate_manager_test.dart
dart run isolate_manager:generate -i test -o test --worker-mappings-experiment=test/isolate_manager_shared_test.dart
dart run isolate_manager:generate -i test -o test/workers
- name: Run tests on VM
Expand All @@ -39,7 +43,7 @@ jobs:
- name: Format coverage
run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib --check-ignore

- name: Covert to relative paths
- name: Convert to relative paths
run: sed -i 's|SF:.*/lib|SF:lib|' coverage/lcov.info

- name: Show code coverage reports
Expand Down

1 comment on commit 7db44ce

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

93.46%

Coverage Report for Changed Files
FileStmtsBranchesFuncsLinesUncovered Lines
lib/src
   isolate_manager.dart100%100%100%100%
   isolate_manager.dart100%100%100%100%

Please sign in to comment.