-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (41 loc) · 1.1 KB
/
Copy pathci.yml
File metadata and controls
52 lines (41 loc) · 1.1 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
on:
pull_request:
push:
branches:
- main
jobs:
detector:
name: detector tests and lint (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run detector tests
run: go test ./detector/...
- name: Run detector lint
run: $(go env GOPATH)/bin/staticcheck ./detector/...
full-darwin-build:
name: full repo tests and lint (darwin)
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.26"
- name: Install staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Run all tests
run: go test ./...
- name: Run full lint
run: $(go env GOPATH)/bin/staticcheck ./...