-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (41 loc) · 1 KB
/
check.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
name: Check
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
check-go-mod:
name: Check Module Tidiness
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
- run: go mod tidy
- run: git diff --exit-code --
check-test-corpus:
name: Check Test Corpus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
- run: go run ./test/images/gen_images.go ./test/images
- run: git diff --exit-code --
check-release-config:
name: Check Release Config
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
check-latest: true
- uses: goreleaser/goreleaser-action@v5
with:
args: check