ci: retarget test workflow to go-ci runner label
This commit is contained in:
@@ -8,7 +8,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: go-ci
|
||||||
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
@@ -26,7 +26,7 @@ jobs:
|
|||||||
--health-retries 10
|
--health-retries 10
|
||||||
|
|
||||||
env:
|
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:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -43,12 +43,11 @@ jobs:
|
|||||||
echo "::notice::No go.mod yet — Go steps will be skipped until the skeleton lands"
|
echo "::notice::No go.mod yet — Go steps will be skipped until the skeleton lands"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Toolchain versions
|
||||||
if: steps.gomod.outputs.present == 'true'
|
if: steps.gomod.outputs.present == 'true'
|
||||||
uses: actions/setup-go@v5
|
run: |
|
||||||
with:
|
go version
|
||||||
go-version-file: go.mod
|
golangci-lint --version
|
||||||
cache: true
|
|
||||||
|
|
||||||
- name: go vet
|
- name: go vet
|
||||||
if: steps.gomod.outputs.present == 'true'
|
if: steps.gomod.outputs.present == 'true'
|
||||||
@@ -56,9 +55,7 @@ jobs:
|
|||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
if: steps.gomod.outputs.present == 'true'
|
if: steps.gomod.outputs.present == 'true'
|
||||||
uses: golangci/golangci-lint-action@v6
|
run: golangci-lint run ./...
|
||||||
with:
|
|
||||||
version: latest
|
|
||||||
|
|
||||||
- name: go test (race + coverage)
|
- name: go test (race + coverage)
|
||||||
if: steps.gomod.outputs.present == 'true'
|
if: steps.gomod.outputs.present == 'true'
|
||||||
|
|||||||
Reference in New Issue
Block a user