ci: retarget test workflow to go-ci runner label
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user