From 4ef3ce6d8c5466c1254b4492d36dc1bdec02914f Mon Sep 17 00:00:00 2001 From: LordMathis Date: Sat, 26 Jul 2025 15:48:53 +0200 Subject: [PATCH] Add GitHub Actions workflow for Go tests --- .github/workflows/go_test.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/go_test.yaml diff --git a/.github/workflows/go_test.yaml b/.github/workflows/go_test.yaml new file mode 100644 index 0000000..a9e39f6 --- /dev/null +++ b/.github/workflows/go_test.yaml @@ -0,0 +1,32 @@ +name: Go Tests +on: + push: + branches: + - "*" + paths: + - "pkg/**" + - "cmd/**" + - "go.mod" + - "go.sum" + - "webui/webui.go" + pull_request: + branches: + - main +permissions: + contents: read +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: "1.23" + cache: true + - name: Run Tests + run: go test ./... -v + - name: Run Tests with Race Detector + run: go test -race ./... -v \ No newline at end of file