|
1 | | -name: mockingjay |
| 1 | +name: ci |
2 | 2 |
|
3 | | -on: [pull_request] |
| 3 | +concurrency: |
| 4 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 5 | + cancel-in-progress: true |
| 6 | + |
| 7 | +on: |
| 8 | + push: |
| 9 | + branches: |
| 10 | + - main |
| 11 | + pull_request: |
| 12 | + branches: |
| 13 | + - main |
4 | 14 |
|
5 | 15 | jobs: |
6 | | - semantic-pull-request: |
| 16 | + semantic_pull_request: |
7 | 17 | uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 |
8 | 18 |
|
9 | 19 | build: |
10 | | - runs-on: ubuntu-latest |
11 | | - |
12 | | - steps: |
13 | | - - uses: actions/checkout@v3 |
14 | | - |
15 | | - - uses: subosito/[email protected] |
16 | | - |
17 | | - - name: Install Dependencies |
18 | | - run: flutter packages get |
19 | | - |
20 | | - - name: Format |
21 | | - run: flutter format --set-exit-if-changed . |
22 | | - |
23 | | - - name: Analyze |
24 | | - run: flutter analyze lib test example |
25 | | - |
26 | | - - name: Run tests |
27 | | - run: flutter test --no-pub --coverage --test-randomize-ordering-seed random |
28 | | - |
29 | | - - name: Run example project tests |
30 | | - working-directory: example/ |
31 | | - run: flutter test --no-pub --test-randomize-ordering-seed random |
32 | | - |
33 | | - - name: Check Code Coverage |
34 | | - uses: VeryGoodOpenSource/[email protected] |
35 | | - with: |
36 | | - path: coverage/lcov.info |
37 | | - |
38 | | - pana: |
39 | | - runs-on: ubuntu-latest |
40 | | - |
41 | | - steps: |
42 | | - - uses: actions/checkout@v3 |
43 | | - |
44 | | - - uses: subosito/[email protected] |
45 | | - |
46 | | - - name: Install Dependencies |
47 | | - run: | |
48 | | - flutter packages get |
49 | | - flutter pub global activate pana |
50 | | -
|
51 | | - - name: Verify Pub Score |
52 | | - run: ./tool/verify_pub_score.sh |
| 20 | + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/flutter_package.yml@v1 |
| 21 | + with: |
| 22 | + flutter_channel: stable |
| 23 | + |
| 24 | + spell-check: |
| 25 | + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/spell_check.yml@v1 |
| 26 | + with: |
| 27 | + includes: | |
| 28 | + **/*.{md,yaml} |
| 29 | + !.dart_tool/**/*.yaml |
| 30 | + .*/**/*.yml |
| 31 | + modified_files_only: false |
| 32 | + |
| 33 | + pana_score: |
| 34 | + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1 |
0 commit comments