blob: a5ed0e5851b06a8cc82a009b489149049fec207c (
plain)
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
44
45
|
name: Build and test
env:
GO_VERSION: 1.21.6
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test-nocache:
strategy:
matrix:
go-version: ${{ env.GO_VERSION }}
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: lint, test, and build
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Check for CRLF endings
uses: erclu/check-crlf@v1
- name: All tests
run: go test -v ./...
- name: Vet
run: go vet ./...
- name: Staticcheck
uses: dominikh/[email protected]
with:
install-go: false
version: "latest"
|