Migrates to package:web and js_interop #4239
Workflow file for this run
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: sentry-dio | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
pull_request: | |
paths: | |
- "!**/*.md" | |
- "!**/class-diagram.svg" | |
- ".github/workflows/dio.yml" | |
- "dart/**" | |
- "dio/**" | |
jobs: | |
cancel-previous-workflow: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # pin@0.12.1 | |
with: | |
access_token: ${{ github.token }} | |
build: | |
name: Build ${{matrix.sdk}} on ${{matrix.os}} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./dio | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
sdk: [stable, beta] | |
exclude: | |
- os: windows-latest | |
sdk: beta | |
- os: macos-latest | |
sdk: beta | |
steps: | |
- uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30 # pin@v1 | |
with: | |
sdk: ${{ matrix.sdk }} | |
- uses: actions/checkout@v4 | |
- name: Test (VM and browser) | |
run: | | |
dart pub get | |
dart test -p chrome --test-randomize-ordering-seed=random --chain-stack-traces | |
dart test -p vm --coverage=coverage --test-randomize-ordering-seed=random --chain-stack-traces | |
dart pub run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.dart_tool/package_config.json --report-on=lib | |
- uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c # pin@v3 | |
if: runner.os == 'Linux' && matrix.sdk == 'stable' | |
with: | |
name: sentry_dio | |
files: ./dio/coverage/lcov.info | |
- uses: VeryGoodOpenSource/very_good_coverage@c953fca3e24a915e111cc6f55f03f756dcb3964c # pin@v3.0.0 | |
if: runner.os == 'Linux' && matrix.sdk == 'stable' | |
with: | |
path: "./dio/coverage/lcov.info" | |
min_coverage: 81 | |
analyze: | |
uses: ./.github/workflows/analyze.yml | |
with: | |
package: dio |