Update CI workflow to install CGO dependencies for Go builds
Some checks failed
CI/CD Pipeline / backend-lint (push) Failing after 28s
CI/CD Pipeline / backend-build (push) Has been skipped
CI/CD Pipeline / frontend-lint (push) Successful in 1m39s
CI/CD Pipeline / frontend-build (push) Failing after 32s
CI/CD Pipeline / e2e-test (push) Has been skipped

- Add step to install GCC for CGO support in the CI pipeline
- Set CGO_ENABLED environment variable to enable CGO during testing
This commit is contained in:
Damir Mukimov 2025-12-26 13:21:00 +01:00
parent f434b26dd4
commit 0e56f50c38
No known key found for this signature in database
GPG Key ID: 42996CC7C73BC750

View File

@ -65,6 +65,10 @@ jobs:
with:
go-version: '1.25.3'
cache: true
- name: Install CGO dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc
- name: Install dependencies
working-directory: bugulma/backend
run: go mod download
@ -112,6 +116,7 @@ jobs:
run: go test -v -race -coverprofile=coverage.out ./...
env:
GO111MODULE: on
CGO_ENABLED: 1
GOPROXY: https://proxy.golang.org,direct
GOSUMDB: sum.golang.org
- name: Coverage