Skip to content

Commit 24bc19c

Browse files
Create unit_tests.yml
Add unit_tests workflow
1 parent 66e0dd1 commit 24bc19c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/unit_tests.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: unit_tests
2+
3+
on:
4+
push:
5+
branches: [ "main"]
6+
pull_request:
7+
branches: [ "main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: true
14+
matrix:
15+
go-version: ['1.22', '1.23', '1.24.x']
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v4
22+
with:
23+
go-version: ${{ matrix.go-version }}
24+
25+
- name: Install dependencies
26+
run: go mod tidy
27+
28+
- name: build
29+
run: go build -v ./...
30+
31+
- name: Run unit tests
32+
run: go test -v ./tests

0 commit comments

Comments
 (0)