Skip to content

Commit 4ff789d

Browse files
🤖 Add GitHub Actions workflow to run tests on push
1 parent 4c3987d commit 4ff789d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version-file: 'go.mod'
23+
cache-dependency-path: go.sum
24+
25+
- name: Run tests
26+
run: go test ./...

0 commit comments

Comments
 (0)