From 65a54ed291b4f6aa4badbce502f284b91dee52db Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sun, 14 Sep 2025 12:27:18 +0200 Subject: [PATCH] Run go in Github Action --- .github/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9cd809f4..093d2187 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,3 +30,33 @@ jobs: - name: Run checks run: deno task checks + + test-go: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v3 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "1.25" + + - name: Verify Go installation + run: go version + + - name: Verify Go modules + run: go mod verify + + - name: Download dependencies + run: go mod download + + - name: Run Go tests + run: go test ./server_go -v + + - name: Run Go tests with coverage + run: go test ./server_go -coverprofile=coverage.out + + - name: Display test coverage + run: go tool cover -func=coverage.out