forked from jsimonetti/rtnetlink
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (64 loc) · 1.85 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
on: [push, pull_request]
name: Go
jobs:
macos_test:
name: Test MacOS
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
platform: [macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Checkout code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- name: Download dependencies
run: go mod download
- name: Go Vet
run: go vet ./...
- name: Fuzz build
run: go build -tags=gofuzz ./...
- name: Test
run: go test ./...
linux_test:
name: Test Linux Integration
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Checkout code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
- 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 ./...
govuln_check:
name: Check for vulnerabilities
strategy:
matrix:
go-version: [1.20.x, 1.21.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Check for vulnerabilities
id: govulncheck
uses: golang/govulncheck-action@3a32958c2706f7048305d5a2e53633d7e37e97d0
with:
cache: false
go-version-input: ${{ matrix.go-version }}
go-package: ./...