Skip to content

Commit 5664bfa

Browse files
committed
feat(ci): add GitHub Actions workflow for tests
- create `.github/workflows/test.yml` - configure workflow to run tests on push to `main` - use `actions/checkout@v4` and `actions/setup-go@v5` - run `go test ./...` for testing
1 parent eebe22c commit 5664bfa

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- uses: actions/setup-go@v5
14+
with:
15+
go-version-file: go.mod
16+
17+
- run: go test ./...

0 commit comments

Comments
 (0)