-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 1.02 KB
/
go-test.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
on: [push, pull_request]
name: Go
jobs:
linux_test:
name: Test Linux Integration
strategy:
matrix:
go-version: ['oldstable', 'stable']
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Download dependencies
run: go mod download
- name: Go Vet
run: go vet ./...
- name: Fuzz build
run: go build -tags=gofuzz ./...
- name: Test Integration
run: sudo -E env PATH=$PATH go test -v -tags=integration ./...
- name: Check for vulnerabilities
id: govulncheck
uses: golang/govulncheck-action@dd0578b371c987f96d1185abb54344b44352bd58 # v1.0.3
with:
cache: false
go-version-input: ${{ matrix.go-version }}
go-package: ./...