Use custom lints #205
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: adb prepare | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'packages/adb/**' | |
jobs: | |
main: | |
name: Dart ${{ matrix.dart-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
dart-version: ['3.2'] | |
defaults: | |
run: | |
working-directory: packages/adb | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Set up Dart | |
uses: dart-lang/setup-dart@v1 | |
with: | |
sdk: ${{ matrix.dart-version }} | |
- name: dart pub get | |
run: dart pub get | |
- name: dart test | |
run: dart test | |
- name: Run analyzer | |
if: success() || failure() | |
run: | | |
adb analyze | |
dart run custom_lint | |
- name: dart format | |
run: dart format --set-exit-if-changed . | |
- name: dart pub publish --dry-run | |
run: dart pub publish --dry-run |