Skip to content

Commit e20e7f4

Browse files
committed
Add GitHub Actions configuration
Run tests for each change/pull request.
1 parent 8e1e8ec commit e20e7f4

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
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+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
go-version: [ '1.22', '1.23' ]
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up Go ${{ matrix.go-version }}
19+
uses: actions/setup-go@v4
20+
with:
21+
go-version: ${{ matrix.go-version }}
22+
23+
- name: Build
24+
run: go build -v ./...
25+
26+
- name: Test
27+
run: go test -v ./...

0 commit comments

Comments
 (0)