2022-04-22 13:32:01 +00:00
|
|
|
name: validate
|
|
|
|
|
2022-11-26 13:09:19 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-04-22 13:32:01 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release/*'
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
pull_request:
|
|
|
|
|
2022-09-24 06:52:57 +00:00
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2022-04-22 13:32:01 +00:00
|
|
|
jobs:
|
|
|
|
validate:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
target:
|
2022-05-03 10:51:31 +00:00
|
|
|
- lint
|
2022-04-22 13:32:01 +00:00
|
|
|
- validate-vendor
|
2022-07-20 12:18:18 +00:00
|
|
|
- validate-git
|
2022-04-22 13:32:01 +00:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-12-29 23:06:01 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-04-22 13:32:01 +00:00
|
|
|
-
|
|
|
|
name: Run
|
|
|
|
run: |
|
|
|
|
make ${{ matrix.target }}
|
2022-07-20 12:18:18 +00:00
|
|
|
env:
|
|
|
|
COMMIT_RANGE: ${{ format('{0}..{1}', github.sha, 'HEAD') }}
|