-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (31 loc) · 761 Bytes
/
Copy pathgo.yml
File metadata and controls
37 lines (31 loc) · 761 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
30
31
32
33
34
35
36
37
name: Go
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.27"
cache: true
- name: Lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.13.2
args: --timeout 10m
- name: Vet
if: matrix.os == 'ubuntu-latest'
run: go vet -v ./...
- name: Build
env:
CGO_ENABLED: 0
run: go build -ldflags "-s -w" ./...
- name: Test
run: go test -v -race ./...