-
Notifications
You must be signed in to change notification settings - Fork 25
94 lines (87 loc) · 2.16 KB
/
verify.yaml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Verify
on:
push:
branches:
- main
- "release-*"
- "test/**"
pull_request:
branches:
- main
- "release-*"
env:
GO_VERSION: "1.22.1"
jobs:
verify-deps:
name: Dependencies
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: |
make verify-godeps
verify-formatting:
name: Formatting
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: |
if ! git diff-index --check origin/${{ github.base_ref }} --; then
echo "This PR would introduce the errors shown above."
echo "Please fix them and update the PR."
exit 1
fi
if: ${{ github.event_name == 'pull_request' }}
- run: |
make verify-fmt
verify-generated:
name: Generated Assets
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: |
make verify-generate
verify-build:
name: Builds
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: |
make verify-build
verify-docs:
name: Documentation
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- run: |
pip3 install --user -r docs/requirements.txt
echo "`python3 -m site --user-base`/bin" >> $GITHUB_PATH
- run: |
git config user.name "Github"
git config user.email "[email protected]"
./scripts/build/update-gh-pages.sh