Skip to content

Commit a1bede2

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

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/go.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Go
2+
on: [push]
3+
jobs:
4+
go-test-vet:
5+
strategy:
6+
matrix:
7+
go-version: ['1.22', '1.21']
8+
runs-on: ubuntu-latest
9+
name: go test/vet
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+
- run: go vet ./...

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)