-
Notifications
You must be signed in to change notification settings - Fork 12
67 lines (56 loc) · 1.51 KB
/
all_packages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: All Packages
on:
push:
paths:
- "app/**"
- "core/**"
- "designer_v2/**"
- "flutter_common/**"
- '*.gitignore'
- 'melos.yaml'
- 'pubspec.yaml'
- 'pubspec.lock'
- ".github/workflows/all_packages.yml"
- ".github/workflows/init-workspace/**"
workflow_dispatch:
concurrency:
group: ${{ github.ref }}-all-packages
cancel-in-progress: true
jobs:
static_analysis:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.READY_TO_MERGE_TOKEN }}
- name: Init workspace
uses: ./.github/workflows/init-workspace
- name: Run generate
run: melos run generate
# - name: Run fix # remove until flutter_gen issue is fixed
# run: melos run fix
- name: Run bootstrap
run: melos bootstrap
- name: Run format
run: melos format
- name: Run analyze
run: melos analyze --fatal-infos
- name: Commit changes if any
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: Apply static analysis changes'
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Init workspace
uses: ./.github/workflows/init-workspace
- name: Run Test
run: melos run test --no-select