File tree 2 files changed +41
-8
lines changed
2 files changed +41
-8
lines changed Original file line number Diff line number Diff line change 6
6
- ' master'
7
7
- ' releases/v*'
8
8
pull_request :
9
- branches :
10
- - ' master'
11
- - ' releases/v*'
12
9
13
10
jobs :
14
11
test :
17
14
-
18
15
name : Checkout
19
16
uses : actions/checkout@v3
20
- -
21
- name : Validate
22
- uses : docker/bake-action@v3
23
- with :
24
- targets : validate
25
17
-
26
18
name : Test
27
19
uses : docker/bake-action@v3
Original file line number Diff line number Diff line change
1
+ name : validate
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' master'
7
+ - ' releases/v*'
8
+ pull_request :
9
+
10
+ jobs :
11
+ prepare :
12
+ runs-on : ubuntu-latest
13
+ outputs :
14
+ targets : ${{ steps.targets.outputs.matrix }}
15
+ steps :
16
+ -
17
+ name : Checkout
18
+ uses : actions/checkout@v3
19
+ -
20
+ name : Targets matrix
21
+ id : targets
22
+ run : |
23
+ echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
24
+
25
+ validate :
26
+ runs-on : ubuntu-latest
27
+ needs :
28
+ - prepare
29
+ strategy :
30
+ fail-fast : false
31
+ matrix :
32
+ target : ${{ fromJson(needs.prepare.outputs.targets) }}
33
+ steps :
34
+ -
35
+ name : Checkout
36
+ uses : actions/checkout@v3
37
+ -
38
+ name : Validate
39
+ uses : docker/bake-action@v3
40
+ with :
41
+ targets : ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments