forked from moby/buildkit
-
Notifications
You must be signed in to change notification settings - Fork 2
45 lines (42 loc) · 916 Bytes
/
validate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: validate
on:
workflow_dispatch:
push:
branches:
- 'master'
tags:
- 'v*'
- 'dockerfile/*'
pull_request:
branches:
- 'master'
env:
REPO_SLUG_ORIGIN: "moby/buildkit:latest"
jobs:
validate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- script: ./hack/lint
- script: ./hack/validate-vendor
- script: ./hack/validate-generated-files
- script: ./hack/validate-shfmt
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
-
name: Run
run: |
${{ matrix.script }}
-
name: Dump context
if: always()
uses: crazy-max/ghaction-dump-context@v1