-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (43 loc) · 1 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
---
name: Test
"on":
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test on Go ${{ matrix.go }}
permissions:
checks: write
contents: read
pull-requests: read
statuses: write
runs-on: ubuntu-24.04
strategy:
matrix:
go: ["1.23.3", "1.22.9"]
env:
GOTOOLCHAIN: local
steps:
- name: ✔ Check out
uses: actions/checkout@v4
- name: 🐹 Set up Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: 🧸 golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.62.0
- name: 🔨 Test
run: |
go get -C ./pkg/analyzer/testdata golang.org/x/exp/errors
go test -coverprofile=cover.out ./...
- name: 🧑🏻💻 codecov
uses: codecov/codecov-action@v4
with:
files: ./cover.out
token: ${{ secrets.CODECOV_TOKEN }}