-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (40 loc) · 889 Bytes
/
Copy pathtest.yml
File metadata and controls
48 lines (40 loc) · 889 Bytes
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
name: Test
on:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
push:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run linters
uses: golangci/golangci-lint-action@v7
with:
version: v2.1.6
args: --timeout 10m
- name: Format
run: make fmt
- name: Run tests
run: make test
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: build --snapshot --clean