Showing
1 changed file
with
14 additions
and
19 deletions
1 | -name: Dart CI | ||
2 | - | ||
3 | -on: | ||
4 | - push: | ||
5 | - branches: [ master ] | ||
6 | - pull_request: | ||
7 | - branches: [ master ] | ||
8 | - | 1 | +name: Run analyze and tests |
2 | +on: pull_request | ||
9 | jobs: | 3 | jobs: |
10 | - build: | ||
11 | - | 4 | + analyze-and-test: |
12 | runs-on: ubuntu-latest | 5 | runs-on: ubuntu-latest |
13 | - | ||
14 | - container: | ||
15 | - image: google/dart:latest | ||
16 | - | ||
17 | steps: | 6 | steps: |
18 | - - uses: actions/checkout@v2 | ||
19 | - - name: Install dependencies | ||
20 | - run: pub get | ||
21 | - - name: Run tests | ||
22 | - run: pub run test | 7 | + - uses: actions/checkout@v1 |
8 | + - uses: actions/setup-java@v1 | ||
9 | + with: | ||
10 | + java-version: '12.x' | ||
11 | + - uses: subosito/flutter-action@v1 | ||
12 | + with: | ||
13 | + channel: 'stable' | ||
14 | + - run: flutter pub get | ||
15 | + - run: flutter build aot | ||
16 | + - run: flutter analyze | ||
17 | + - run: flutter test |
-
Please register or login to post a comment