♻️ migrate screwdriver_web to use web and js_interop. #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests & Coverage | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.dart' | |
tags-ignore: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
tests_and_coverage: | |
runs-on: macos-latest | |
steps: | |
- name: Tap Google's Dart formula repository | |
run: brew tap dart-lang/dart | |
- name: Install the Dart formula | |
run: brew install dart | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: dart pub get | |
- name: Run tests | |
run: dart pub run test | |
- name: Install coverage package | |
run: dart pub global activate coverage | |
- name: Generate coverage report | |
run: dart pub global run coverage:test_with_coverage | |
- name: Generate lcov file | |
run: dart pub global run coverage:format_coverage --packages=.dart_tool/package_config.json --lcov -i coverage/coverage.json -o coverage/lcov.info | |
- uses: codecov/codecov-action@v3 | |
with: | |
file: coverage/lcov.info |