-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (38 loc) · 1.09 KB
/
test.yml
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
name: Package tests
on: [push]
permissions:
contents: read # allow read access to the content for analysis
pull-requests: read # allow read access to pull request
checks: write # allow write access to checks to allow the action to annotate code in the PR
jobs:
tests:
name: Go tests
strategy:
matrix:
go: ['1.21']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with: { go-version: "${{ matrix.go }}", cache: false }
- name: Build
run: go build -v ./...
- name: Test
run: go test -race -v ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with: { go-version: "1.21", cache: false }
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.57.2
skip-cache: true