File tree Expand file tree Collapse file tree 1 file changed +22
-36
lines changed
Expand file tree Collapse file tree 1 file changed +22
-36
lines changed Original file line number Diff line number Diff line change 1616 branches : [main]
1717
1818jobs :
19- lint :
19+ prepare :
2020 runs-on : ubuntu-latest
21+ outputs :
22+ includes : ${{ steps.generate.outputs.matrix }}
2123 steps :
2224 - name : Checkout
2325 uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
24-
25- - name : Set up Docker Buildx
26- uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
27-
28- - name : Lint
29- uses : docker/bake-action@3acf805d94d93a86cce4ca44798a76464a75b88c # v6.9.0
26+ -
27+ name : Generate matrix
28+ id : generate
29+ uses : docker/bake-action/subaction/matrix@3acf805d94d93a86cce4ca44798a76464a75b88c # v6.9.0
3030 with :
31- source : .
32- targets : lint
31+ target : validate
3332
34- test :
35- runs-on : ubuntu-latest
36- steps :
37- - name : Checkout
38- uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
39-
40- - name : Set up Go
41- uses : actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
42- with :
43- go-version : " 1.25.0"
44- cache : true
45-
46- - name : Install Task
47- uses : go-task/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1.0.0
48- with :
49- version : 3.x
50-
51- - name : Run tests
52- run : task test
53-
54- license-check :
33+ validate :
5534 runs-on : ubuntu-latest
35+ needs :
36+ - prepare
37+ strategy :
38+ fail-fast : false
39+ matrix :
40+ include : ${{ fromJson(needs.prepare.outputs.includes) }}
5641 steps :
5742 - name : Checkout
5843 uses : actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
5944
6045 - name : Set up Docker Buildx
6146 uses : docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
6247
63- - name : Check licenses
64- uses : docker/bake-action@3acf805d94d93a86cce4ca44798a76464a75b88c # v6.9.0
48+ - name : Validate
49+ uses : docker/bake-action@v6
6550 with :
66- source : .
67- targets : licenses
51+ targets : ${{ matrix.target }}
6852
6953 build :
70- needs : [lint, test, license-check]
54+ needs :
55+ - validate
7156 runs-on : ubuntu-latest
7257 steps :
7358 - name : Checkout
8873 run : task build
8974
9075 build-image :
91- needs : [lint, test, license-check]
76+ needs :
77+ - validate
9278 runs-on : ubuntu-latest
9379 steps :
9480 - name : Checkout
You can’t perform that action at this time.
0 commit comments