Skip to content

Commit 5d53508

Browse files
authored
Merge pull request #91 from boombuler/go-test-workflow
Use GitHub Actions workflow to run test suite
2 parents ea5ac7e + 4878965 commit 5d53508

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
branches:
8+
- master
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
# Test currently supported Go releases.
19+
#
20+
# See: https://go.dev/doc/devel/release#policy
21+
go-version:
22+
- stable
23+
- oldstable
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Set up Go ${{ matrix.go-version }}
29+
uses: actions/setup-go@v5
30+
with:
31+
go-version: ${{ matrix.go-version }}
32+
# Caching isn't really needed without any dependencies,
33+
# and without a go.sum this action will emit warnings.
34+
#
35+
# See: https://github.com/actions/setup-go/issues/476
36+
cache: false
37+
38+
- name: Test
39+
run: go test -v ./...

0 commit comments

Comments
 (0)