-
-
Notifications
You must be signed in to change notification settings - Fork 271
28 lines (28 loc) · 661 Bytes
/
Copy pathci.yaml
File metadata and controls
28 lines (28 loc) · 661 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
name: CI
permissions:
contents: read
on:
push:
branches: [ main ]
pull_request: { }
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ 1.25, 1.26 ]
name: Build & Test
steps:
- uses: actions/checkout@v4
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: golangci-lint
uses: golangci/golangci-lint-action@v8
with:
version: v2.9.0
- run: go test -race -coverprofile=coverage.txt -covermode=atomic ./...
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}