diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 3aa1d8c..a064e70 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -7,24 +7,24 @@ on: branches: [ main ] jobs: - format-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-java@v1 - with: - java-version: '12.x' + - uses: actions/checkout@v2 - uses: subosito/flutter-action@v2 with: channel: 'stable' - run: flutter pub get - - run: flutter format --set-exit-if-changed . + - 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 }} @@ -36,6 +36,6 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install dependencies - run: pub get + run: dart pub get - name: Run tests - run: pub run test \ No newline at end of file + run: dart test