Skip to content

Commit 8364eb5

Browse files
committed
ci: split validate workflow
1 parent fb83b7c commit 8364eb5

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/validate.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,32 @@ on:
88
paths-ignore:
99
- '**.md'
1010
pull_request:
11-
branches:
12-
- 'master'
13-
- 'releases/v*'
1411
paths-ignore:
1512
- '**.md'
1613

1714
jobs:
15+
prepare:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
targets: ${{ steps.targets.outputs.matrix }}
19+
steps:
20+
-
21+
name: Checkout
22+
uses: actions/checkout@v3
23+
-
24+
name: Targets matrix
25+
id: targets
26+
run: |
27+
echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
28+
1829
validate:
1930
runs-on: ubuntu-latest
31+
needs:
32+
- prepare
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
target: ${{ fromJson(needs.prepare.outputs.targets) }}
2037
steps:
2138
-
2239
name: Checkout
@@ -25,4 +42,4 @@ jobs:
2542
name: Validate
2643
uses: docker/bake-action@v3
2744
with:
28-
targets: validate
45+
targets: ${{ matrix.target }}

0 commit comments

Comments
 (0)