Skip to content

Commit 367bd5f

Browse files
committed
chore(build): create run tests action
Fixes: #5
1 parent 3912a8b commit 367bd5f

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Run UIok tests
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.23", "1.24", "1.25"]
12+
13+
steps:
14+
- uses: actions/checkout@v6
15+
- name: Setup Go ${{ matrix.go-version }}
16+
uses: actions/setup-go@v6
17+
with:
18+
go-version: ${{ matrix.go-version }}
19+
- name: Install dependencies
20+
run: |
21+
go mod tidy
22+
- name: Run go unit tests
23+
run: |
24+
make test

makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
test:
3+
CGO_ENABLED=0 go clean -testcache && go test -v ./...

0 commit comments

Comments
 (0)