Skip to content

Commit 9f9799d

Browse files
committed
build: added GitHub actions for push and pull request events
1 parent 511383f commit 9f9799d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: ci
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
go-version: '1.26.x'
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
- name: Setup Go ${{ matrix.go-version }}
16+
uses: actions/setup-go@v5
17+
with:
18+
go-version: ${{ matrix.go-version }}
19+
# You can test your matrix by printing the current Go version
20+
- name: Display Go version
21+
run: go version
22+
- name: Build Dependencies
23+
run: go mod tidy && go mod vendor
24+
- name: Run Tests
25+
run: go test -v -count=1 ./...

0 commit comments

Comments
 (0)