Debian Codegraph @

.github/workflows/test.yml

raw
1 name: test
2
3 on:
4 push:
5 branches: [ main ]
6 paths:
7 - '.github/workflows/**'
8 - 'cmd/**'
9 - 'core/**'
10 - 'then/**'
11 - 'main.go'
12 - 'go.mod'
13 - 'go.sum'
14 pull_request:
15 branches: [ main ]
16 paths:
17 - '.github/workflows/**'
18 - 'cmd/**'
19 - 'core/**'
20 - 'then/**'
21 - 'main.go'
22 - 'go.mod'
23 - 'go.sum'
24
25 jobs:
26
27 build:
28 name: Build
29 runs-on: ubuntu-latest
30 steps:
31
32 - name: Check out code
33 uses: actions/checkout@v7
34
35 - name: Setup Go
36 uses: actions/setup-go@v7
37 with:
38 go-version-file: 'go.mod'
39
40 - name: golangci-lint
41 uses: golangci/golangci-lint-action@v9
42 with:
43 # Required: the version of golangci-lint is required and must be specified
44 # without patch version: we always use the latest patch version.
45 version: 'v2.12'
46
47 - name: Gen
48 run: go run main.go gen
49
50 - name: Test
51 run: go test -cover ./...
52
53 - name: Validate Changie fragments
54 run: go run main.go batch major --dry-run