Skip to content

Commit 0344616

Browse files
committed
GitHub Actions workflow to run tests is added
This is a simple test to avoid test failures being merged into the mainline and ensure compatibility with the currently supported releases of Go.
1 parent ea5ac7e commit 0344616

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
33+
- name: Test
34+
run: go test -v ./...

0 commit comments

Comments
 (0)