-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 819 Bytes
/
go.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
# Based on https://github.com/mvdan/github-actions-golang
on: [push, pull_request, workflow_dispatch]
name: Tests
jobs:
test:
strategy:
matrix:
go-version: ["stable"]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test ./...
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: golang/govulncheck-action@v1
with:
go-version-input: 1.22.1
gocritic:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/checkout@v3
- run: |
go install github.com/go-critic/go-critic/cmd/gocritic@latest
gocritic check .