Skip to content

Allow analyzer 6

Allow analyzer 6 #38

Workflow file for this run

name: Dart CI
on:
push:
branches:
- 'master'
- 'test_consume_*'
pull_request:
branches:
- '**'
permissions:
contents: write
id-token: write
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
sdk: [ 2.19.6, 3.5.4 ]
steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
with:
sdk: ${{ matrix.sdk }}
- name: Install dependencies
run: dart pub get
- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
if: ${{ matrix.sdk == '2.19.6' }}
- name: Analyze project source
run: dart analyze
- name: Run tests in dev mode
run: dart run build_runner test --delete-conflicting-outputs
- name: Run tests in release mode
run: dart run build_runner test --release --delete-conflicting-outputs
- name: Publish SBOM
uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json