Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
ci/cd: update backend tests workflow to include GCC installation and enable race detection
Kyle Mendellae7e6605813d
diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.ymlindex b5fd79086..6068f534a 100644--- a/.github/workflows/backend-tests.yml+++ b/.github/workflows/backend-tests.yml@@ -2,10 +2,11 @@ name: Backend Unit Testson:push:+ branches: [main]paths:- 'backend/**'- - '.github/workflows/backend-tests.yml'pull_request:+ branches: [main]paths:- 'backend/**'@@ -26,12 +27,17 @@ jobs:go-version-file: backend/go.modcache: true+ - name: Install GCC (for CGO/race)+ run: |+ sudo apt-get update+ sudo apt-get install -y gcc+- name: Download modulesrun: go mod download- - name: Run unit tests+ - name: Run unit tests (race + coverage)env:- CGO_ENABLED: '0'+ CGO_ENABLED: '1'run: go test ./... -race -coverprofile=coverage.out -covermode=atomic -v- name: Upload coverage artifact