-
Notifications
You must be signed in to change notification settings - Fork 327
52 lines (39 loc) · 1.02 KB
/
test-v1.yml
File metadata and controls
52 lines (39 loc) · 1.02 KB
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
46
47
48
49
50
51
52
name: CI for v1 Module
on:
push:
paths-ignore:
- 'v2/**'
pull_request:
paths-ignore:
- 'v2/**'
jobs:
test-v1:
strategy:
matrix:
go-version: [1.23.x, 1.24.x]
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
defaults:
run:
working-directory: ./
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{matrix.go-version}}
- name: gofmt
run: test -z "`gofmt -l .`"
- name: Install golint
run: go install golang.org/x/lint/golint@latest
- name: golint
run: test -z "`$(go env GOPATH)/bin/golint ./...`"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: staticcheck
run: $(go env GOPATH)/bin/staticcheck ./...
- name: go test
run: go test -v ./...
- name: Build example
run: cd example && ./linux64_build.sh