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"
|
go-version: "1.25"
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
- run: apk add --no-cache postgresql-client
|
- run: apk add --no-cache postgresql-client build-base
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
for i in $(seq 1 30); do
|
for i in $(seq 1 30); do
|
||||||
@@ -106,6 +106,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
POSTGRES_HOST: postgres
|
POSTGRES_HOST: postgres
|
||||||
TEST_DB_HOST: postgres
|
TEST_DB_HOST: postgres
|
||||||
|
CGO_ENABLED: "1"
|
||||||
|
|
||||||
quality:
|
quality:
|
||||||
name: Lint & vulns
|
name: Lint & vulns
|
||||||
@@ -140,4 +141,5 @@ jobs:
|
|||||||
- name: Frontend lint
|
- name: Frontend lint
|
||||||
run: |
|
run: |
|
||||||
cd frontend
|
cd frontend
|
||||||
|
npm run format
|
||||||
npm run lint
|
npm run lint
|
||||||
|
|||||||
Reference in New Issue
Block a user