Skip to content

Commit 0806c75

Browse files
committed
Go tests GitHub Actions workflow
1 parent a50a595 commit 0806c75

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/go.yml

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