Skip to content

fix github action 3 #155

fix github action 3

fix github action 3 #155

Workflow file for this run

name: Dart CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: dart format --set-exit-if-changed .
package-analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- uses: axel-op/dart-package-analyzer@v3
with:
githubToken: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dart SDK
uses: dart-lang/setup-dart@v1
with:
sdk: '3.4.1'
- name: Install dependencies
run: dart pub get
- name: Run tests
run: dart test