Merge pull request #189 from crazy-max/ci-split

ci: split validate workflow
This commit is contained in:
CrazyMax 2023-05-06 15:13:00 +02:00 committed by GitHub
commit 274d188dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 8 deletions

View File

@ -8,9 +8,6 @@ on:
- 'dev'
- 'releases/v*'
pull_request:
branches:
- 'dev'
- 'releases/v*'
jobs:
ci:
@ -92,7 +89,6 @@ jobs:
pages_threshold: major_outage
-
name: Deploy
if: success()
uses: ./
with:
target_branch: ${{ matrix.target_branch }}

View File

@ -8,15 +8,32 @@ on:
paths-ignore:
- '**.md'
pull_request:
branches:
- 'dev'
- 'releases/v*'
paths-ignore:
- '**.md'
jobs:
prepare:
runs-on: ubuntu-latest
outputs:
targets: ${{ steps.targets.outputs.matrix }}
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Targets matrix
id: targets
run: |
echo "matrix=$(docker buildx bake validate --print | jq -cr '.group.validate.targets')" >> $GITHUB_OUTPUT
validate:
runs-on: ubuntu-latest
needs:
- prepare
strategy:
fail-fast: false
matrix:
target: ${{ fromJson(needs.prepare.outputs.targets) }}
steps:
-
name: Checkout
@ -25,4 +42,4 @@ jobs:
name: Validate
uses: docker/bake-action@v3
with:
targets: validate
targets: ${{ matrix.target }}