Skip to content

Use custom lints

Use custom lints #207

Workflow file for this run

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: |
dart 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