-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (35 loc) · 896 Bytes
/
ci.yml
File metadata and controls
46 lines (35 loc) · 896 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
name: Continuous Integration
on:
push:
branches: [main]
paths-ignore:
- '**.md'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
permissions:
contents: read
jobs:
test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install go-task
uses: go-task/setup-task@v1
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.1.6
- name: Download modules
run: go mod download
- name: Run task check
run: task check
- name: Verify working tree clean
run: git diff --exit-code
- name: Test race conditions
run: task test-race