-
Notifications
You must be signed in to change notification settings - Fork 1
122 lines (98 loc) · 3.15 KB
/
checks.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: 'Checks'
on:
pull_request:
branches:
- main
concurrency:
group: checks-${{ github.ref }}
cancel-in-progress: true
jobs:
changes:
uses: ./.github/workflows/wc-changes.yml
action:
runs-on: ubuntu-24.04
needs: changes
if: needs.changes.outputs.action == 'true'
permissions:
checks: "write"
contents: "read"
pull-requests: "write"
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# https://github.com/marketplace/actions/actionlint-with-reviewdog
- uses: reviewdog/action-actionlint@08ef4afa963243489a457cca426f705ce4e0d1a5 # v1.60.0
with:
fail_on_error: true
filter_mode: nofilter
level: error
reporter: github-pr-review
cache-deps:
runs-on: ubuntu-24.04
needs: changes
if: needs.changes.outputs.dependencies == 'true'
timeout-minutes: 10
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# https://github.com/marketplace/actions/mise-action
- name: mise action
uses: jdx/mise-action@249c01ba271e19fa76eede7f766161cc95ace489 # v2.1.10
- name: setup gitignore target files
uses: ./.github/actions/setup-gitignore-target-files
- name: setup pub
uses: ./.github/actions/setup-pub
analyze:
runs-on: ubuntu-24.04
needs:
- changes
- cache-deps
if: needs.changes.outputs.analyze == 'true'
timeout-minutes: 10
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# https://github.com/marketplace/actions/mise-action
- name: mise action
uses: jdx/mise-action@249c01ba271e19fa76eede7f766161cc95ace489 # v2.1.10
- name: setup gitignore target files
uses: ./.github/actions/setup-gitignore-target-files
- name: setup pub
uses: ./.github/actions/setup-pub
- name: Run analyze
run: melos analyze
test:
runs-on: ubuntu-24.04
needs:
- changes
- cache-deps
if: needs.changes.outputs.test == 'true'
timeout-minutes: 10
steps:
# https://github.com/marketplace/actions/checkout
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# https://github.com/marketplace/actions/mise-action
- name: mise action
uses: jdx/mise-action@249c01ba271e19fa76eede7f766161cc95ace489 # v2.1.10
- name: setup gitignore target files
uses: ./.github/actions/setup-gitignore-target-files
- name: setup pub
uses: ./.github/actions/setup-pub
- name: Setup very_good_cli
run: dart pub global activate very_good_cli
- name: Run test
run: melos run ci:test --no-select
status-check:
runs-on: ubuntu-24.04
needs:
- analyze
- test
- action
permissions: { }
if: failure()
steps:
- run: exit 1