-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
29 lines (27 loc) · 656 Bytes
/
Copy pathpr.yml
File metadata and controls
29 lines (27 loc) · 656 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
name: Sanity check
on:
- push
- pull_request
jobs:
prcheck:
name: Sanity check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
- name: Run vet
run: |
go vet .
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: v2.1.5
- name: Run tests
run: go test -race -covermode=atomic -coverprofile=coverage.out -v ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}