This commit is contained in:
parent
3deeb6b159
commit
47b5ae14af
2 changed files with 22 additions and 0 deletions
19
.forgejo/workflows/go-test.yml
Normal file
19
.forgejo/workflows/go-test.yml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
jobs:
|
||||||
|
go-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v5
|
||||||
|
with:
|
||||||
|
go-version: 1.23
|
||||||
|
- name: Run unit tests
|
||||||
|
run: make test
|
||||||
|
- name: Build server
|
||||||
|
run: make server
|
||||||
|
- name: Build client
|
||||||
|
run: make client
|
3
Makefile
3
Makefile
|
@ -10,3 +10,6 @@ client:
|
||||||
|
|
||||||
server:
|
server:
|
||||||
go build -o ./build/server ./cmd/server
|
go build -o ./build/server ./cmd/server
|
||||||
|
|
||||||
|
test:
|
||||||
|
go test -v ./...
|
||||||
|
|
Loading…
Reference in a new issue