-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (35 loc) · 836 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
39
40
41
42
43
44
name: CI
on:
push:
pull_request:
jobs:
test:
strategy:
fail-fast: false
matrix:
runner: [ubuntu-latest, macos-latest, windows-latest]
go: [ '1.23', '1.24' ]
runs-on: ${{matrix.runner}}
name: OS ${{matrix.runner}} Go ${{matrix.go}}
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
check-latest: true
- name: Show Go Version and environment
run: |
go version
go env
- name: Install dependencies
run: |
make
- name: Run tests
run: |
make test
- name: static check
if: runner.os == 'Linux'
run: |
GOBIN=$HOME/.local/bin go install honnef.co/go/tools/cmd/[email protected]
staticcheck