-
-
Notifications
You must be signed in to change notification settings - Fork 61
38 lines (33 loc) · 804 Bytes
/
ci.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
name: CI
on:
pull_request:
push:
branches:
- master
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
go-version: ['1.21']
runs-on: ${{ matrix.platform }}
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout
uses: actions/checkout@v4
- name: Download Go dependencies
run: go mod download -x
env:
GOPROXY: "https://proxy.golang.org"
- name: Lint
uses: golangci/[email protected]
with:
version: v1.62.2
args: --timeout 3m --verbose
- name: Build
run: go build -v .
- name: Test
run: go test -v ./...