Skip to content

docs: Internal links for notices #4

docs: Internal links for notices

docs: Internal links for notices #4

Workflow file for this run

name: package:bjdata
permissions: read-all
on:
push:
branches: [ main, github-actions-test, 'test/*' ]
pull_request:
branches: [ main ]
jobs:
analyze:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev]
steps:
- uses: actions/checkout@v5
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Check formatting
run: dart format --output=none --set-exit-if-changed .
- name: Analyze code
run: dart analyze --fatal-infos
examples:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [stable]
steps:
- uses: actions/checkout@v5
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Run examples
run: for f in example/*.dart; do dart run "$f"; done
test:
needs: analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
sdk: [dev, '3.1']
platform: ['vm', 'chrome']
steps:
- uses: actions/checkout@v5
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Run VM tests
run: dart test -p ${{ matrix.platform }}
coverage:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dart-lang/setup-dart@v1
with:
sdk: dev
- name: Install dependencies
run: dart pub get
- name: Install coverage
run: dart pub global activate coverage
- name: Collect and report coverage
run: dart pub global run coverage:test_with_coverage
- name: Upload coverage
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage/lcov.info