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 ./...