From 47b5ae14afb502ae670ea18966b35f0c831f1033 Mon Sep 17 00:00:00 2001 From: Melora Hugues Date: Tue, 3 Dec 2024 13:12:43 +0100 Subject: [PATCH] Add CI with some tests --- .forgejo/workflows/go-test.yml | 19 +++++++++++++++++++ Makefile | 3 +++ 2 files changed, 22 insertions(+) create mode 100644 .forgejo/workflows/go-test.yml diff --git a/.forgejo/workflows/go-test.yml b/.forgejo/workflows/go-test.yml new file mode 100644 index 0000000..d7a660a --- /dev/null +++ b/.forgejo/workflows/go-test.yml @@ -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 diff --git a/Makefile b/Makefile index 963d17f..0bfc66a 100644 --- a/Makefile +++ b/Makefile @@ -10,3 +10,6 @@ client: server: go build -o ./build/server ./cmd/server + +test: + go test -v ./...