-
Notifications
You must be signed in to change notification settings - Fork 327
54 lines (42 loc) · 988 Bytes
/
test-v2.yml
File metadata and controls
54 lines (42 loc) · 988 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: CI for v2 Module
on:
push:
paths:
- README.md
- .github/workflows/test-v2.yml
- v2/**
pull_request:
paths:
- README.md
- .github/workflows/test-v2.yml
- v2/**
permissions: read-all
jobs:
test-v2:
strategy:
matrix:
go-version: [1.23.x, 1.24.x]
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
defaults:
run:
working-directory: ./v2
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ./v2/go.mod
- name: Tidy modules
run: go mod tidy
- name: Lint Code
uses: golangci/golangci-lint-action@v6
with:
working-directory: ./v2
- name: Check format
run: test -z "`gofmt -l .`"
- name: Run tests
run: go test ./... -v
- name: Build example
run: cd example && ./linux64_build.sh