CI Update 2024 (#62) #320
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: Dart CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
dartversion: [ | |
"google/dart:2.12", | |
"dart:3.0", | |
"dart:stable" | |
] | |
container: | |
image: ${{ matrix.dartversion }} | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: dart pub get || pub get | |
- name: Run tests | |
run: dart pub run test || pub run test | |
formatting: | |
runs-on: ubuntu-latest | |
container: | |
image: dart:3.5 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: dart pub get | |
- name: check formatting | |
run: dart format --fix --set-exit-if-changed . | |
lint: | |
runs-on: ubuntu-latest | |
container: | |
image: dart:3.5 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: dart pub get | |
- name: lint | |
run: dart analyze --fatal-infos | |
- name: docs | |
run: dart doc . | |
- name: Verify package completeness | |
run: dart pub publish -n | |