Skip to content

Commit 2a0f3cc

Browse files
committed
add testing workflow
1 parent 9d0eda7 commit 2a0f3cc

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: run-tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
14+
run-tests:
15+
16+
strategy:
17+
matrix:
18+
runner:
19+
- ubuntu-latest
20+
- macos-latest
21+
- windows-latest
22+
23+
runs-on: ${{ matrix.runner }}
24+
25+
permissions:
26+
contents: read
27+
28+
steps:
29+
30+
- name: Checkout repository
31+
uses: actions/checkout@v6
32+
33+
- name: Setup Go
34+
uses: actions/setup-go@v6
35+
with:
36+
go-version: stable
37+
38+
- name: Run tests
39+
run: go test -v ./...

0 commit comments

Comments
 (0)