v3.0.1 (#138) #146
This file contains hidden or 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: Check source code quality | |
| on: | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "**.dart" | |
| - "pubspec.yaml" | |
| - "analysis_options.yaml" | |
| - ".github/workflows/**" | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "**.dart" | |
| - "pubspec.yaml" | |
| - "analysis_options.yaml" | |
| - ".github/workflows/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Check lints | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dart-lang/setup-dart@v1 | |
| - name: Install dependencies | |
| run: dart pub get --no-example | |
| - name: Verify formatting | |
| run: dart format --set-exit-if-changed lib test | |
| analyze: | |
| name: Check code analysis | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dart-lang/setup-dart@v1 | |
| - name: Install dependencies | |
| run: dart pub get --no-example | |
| - name: Analyze project source | |
| run: dart analyze lib test |