ghaction-github-pages/.github/workflows/validate.yml

46 lines
913 B
YAML
Raw Normal View History

name: validate
on:
push:
branches:
- 'dev'
- 'releases/v*'
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
2023-05-06 21:10:51 +08:00
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
2023-05-06 21:10:51 +08:00
needs:
- prepare
strategy:
fail-fast: false
matrix:
target: ${{ fromJson(needs.prepare.outputs.targets) }}
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Validate
uses: docker/bake-action@v3
with:
2023-05-06 21:10:51 +08:00
targets: ${{ matrix.target }}