From 078e6e989b78dd3587c6005bb70d8a3eab7b6a19 Mon Sep 17 00:00:00 2001 From: bvandeusen Date: Sat, 18 Apr 2026 18:17:16 +0000 Subject: [PATCH] ci: retarget test workflow to go-ci runner label --- .forgejo/workflows/test.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 9e61b375..f440c885 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -8,7 +8,7 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: go-ci services: postgres: @@ -26,7 +26,7 @@ jobs: --health-retries 10 env: - MINSTREL_TEST_DATABASE_URL: postgres://minstrel:minstrel@localhost:5432/minstrel_test?sslmode=disable + MINSTREL_TEST_DATABASE_URL: postgres://minstrel:minstrel@postgres:5432/minstrel_test?sslmode=disable steps: - name: Checkout @@ -43,12 +43,11 @@ jobs: echo "::notice::No go.mod yet — Go steps will be skipped until the skeleton lands" fi - - name: Set up Go + - name: Toolchain versions if: steps.gomod.outputs.present == 'true' - uses: actions/setup-go@v5 - with: - go-version-file: go.mod - cache: true + run: | + go version + golangci-lint --version - name: go vet if: steps.gomod.outputs.present == 'true' @@ -56,9 +55,7 @@ jobs: - name: golangci-lint if: steps.gomod.outputs.present == 'true' - uses: golangci/golangci-lint-action@v6 - with: - version: latest + run: golangci-lint run ./... - name: go test (race + coverage) if: steps.gomod.outputs.present == 'true'