Skip to content

Commit

Permalink
Go tests GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
buth committed Jun 1, 2024
1 parent a50a595 commit 0806c75
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Go
on: [push]
jobs:
go-test:
strategy:
matrix:
go-version: ['1.22', '1.21']
runs-on: ubuntu-latest
name: go test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- run: go test -v -race ./...
govulncheck:
strategy:
matrix:
go-version: ['1.22', '1.21']
runs-on: ubuntu-latest
name: govulncheck
steps:
- uses: golang/govulncheck-action@v1
with:
go-version-input: ${{ matrix.go-version }}
check-latest: true
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/buth/diff

go 1.19
go 1.21.0

0 comments on commit 0806c75

Please sign in to comment.