2021-08-05 02:44:16 -04:00
|
|
|
name: validate
|
|
|
|
|
2022-08-18 14:03:28 -04:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-08-05 02:44:16 -04:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
- '[0-9]+.[0-9]{2}'
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
2021-12-16 15:15:53 -05:00
|
|
|
validate:
|
2022-08-20 09:55:20 -04:00
|
|
|
runs-on: ubuntu-20.04
|
2021-08-05 02:44:16 -04:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
target:
|
|
|
|
- lint
|
|
|
|
- shellcheck
|
2021-12-16 15:15:53 -05:00
|
|
|
- validate-vendor
|
2021-12-20 19:44:40 -05:00
|
|
|
- update-authors # ensure authors update target runs fine
|
2021-08-05 02:44:16 -04:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2022-08-20 09:55:20 -04:00
|
|
|
uses: actions/checkout@v3
|
2021-10-11 14:01:46 -04:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-08-05 02:44:16 -04:00
|
|
|
-
|
|
|
|
name: Run
|
2022-08-20 09:55:20 -04:00
|
|
|
uses: docker/bake-action@v2
|
2021-08-05 02:44:16 -04:00
|
|
|
with:
|
|
|
|
targets: ${{ matrix.target }}
|
2022-02-25 11:11:04 -05:00
|
|
|
|
|
|
|
validate-make:
|
2022-08-20 09:55:20 -04:00
|
|
|
runs-on: ubuntu-20.04
|
2022-02-25 11:11:04 -05:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
target:
|
|
|
|
- yamldocs # ensure yamldocs target runs fine
|
2022-02-25 11:05:35 -05:00
|
|
|
- manpages # ensure manpages target runs fine
|
2022-02-25 11:11:04 -05:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2022-08-20 09:55:20 -04:00
|
|
|
uses: actions/checkout@v3
|
2022-02-25 11:11:04 -05:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: Run
|
2022-02-25 11:05:35 -05:00
|
|
|
shell: 'script --return --quiet --command "bash {0}"'
|
2022-02-25 11:11:04 -05:00
|
|
|
run: |
|
|
|
|
make -f docker.Makefile ${{ matrix.target }}
|