ci: add CGO_ENABLED, build-base for race; auto-fix prettier before lint
- Race job: install build-base (gcc) and set CGO_ENABLED=1 for Go's race detector on Alpine (requires cgo) - Quality job: run npm run format (prettier --write) before lint to auto-fix formatting issues instead of failing CI for style nits - Runner config on server updated to capacity: 8 (parallel jobs)
This commit is contained in:
@@ -90,7 +90,7 @@ jobs:
|
||||
go-version: "1.25"
|
||||
cache: false
|
||||
|
||||
- run: apk add --no-cache postgresql-client
|
||||
- run: apk add --no-cache postgresql-client build-base
|
||||
|
||||
- run: |
|
||||
for i in $(seq 1 30); do
|
||||
@@ -106,6 +106,7 @@ jobs:
|
||||
env:
|
||||
POSTGRES_HOST: postgres
|
||||
TEST_DB_HOST: postgres
|
||||
CGO_ENABLED: "1"
|
||||
|
||||
quality:
|
||||
name: Lint & vulns
|
||||
@@ -140,4 +141,5 @@ jobs:
|
||||
- name: Frontend lint
|
||||
run: |
|
||||
cd frontend
|
||||
npm run format
|
||||
npm run lint
|
||||
|
||||
Reference in New Issue
Block a user