Skip to content

Commit 675629f

Browse files
committed
Go tests GitHub Actions workflow
1 parent a50a595 commit 675629f

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

.github/workflows/go.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Go
2+
on: [push]
3+
jobs:
4+
test:
5+
strategy:
6+
matrix:
7+
go-version: ['1.22', '1.21']
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-go@v5
12+
with:
13+
go-version: ${{ matrix.go-version }}
14+
check-latest: true
15+
- run: go test -v -race ./...
16+
vulncheck:
17+
strategy:
18+
matrix:
19+
go-version: ['1.22', '1.21']
20+
runs-on: ubuntu-latest
21+
name: Run govulncheck
22+
steps:
23+
- uses: golang/govulncheck-action@v1
24+
with:
25+
go-version-input: ${{ matrix.go-version }}
26+
check-latest: true

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/buth/diff
22

3-
go 1.19
3+
go 1.21.0

0 commit comments

Comments
 (0)