fix(ci): isolate GOMODCACHE per job to prevent cache conflicts
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m1s
Build and Release / Unit Tests (push) Successful in 22m31s
Build and Release / Lint (push) Successful in 24m45s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 5m37s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 5m40s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h7m8s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 13m32s
Build and Release / Build Binary (linux/arm64) (push) Failing after 30m51s
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m1s
Build and Release / Unit Tests (push) Successful in 22m31s
Build and Release / Lint (push) Successful in 24m45s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 5m37s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 5m40s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h7m8s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 13m32s
Build and Release / Build Binary (linux/arm64) (push) Failing after 30m51s
Move GOMODCACHE from global env to job-level env with unique paths per job. Prevents race conditions and cache corruption when jobs run in parallel, especially after the gotextdiff mirror replacement.
This commit is contained in:
@@ -16,7 +16,6 @@ env:
|
|||||||
GOPRIVATE: git.marketally.com
|
GOPRIVATE: git.marketally.com
|
||||||
GONOSUMDB: git.marketally.com
|
GONOSUMDB: git.marketally.com
|
||||||
GOTOOLCHAIN: local
|
GOTOOLCHAIN: local
|
||||||
GOMODCACHE: /tmp/gomod-${{ github.run_id }}-${{ github.job }}
|
|
||||||
GO_VERSION: "1.25.5"
|
GO_VERSION: "1.25.5"
|
||||||
NODE_VERSION: "22"
|
NODE_VERSION: "22"
|
||||||
|
|
||||||
@@ -25,6 +24,8 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: linux-latest
|
runs-on: linux-latest
|
||||||
|
env:
|
||||||
|
GOMODCACHE: /tmp/gomod-${{ github.run_id }}-lint
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -66,6 +67,8 @@ jobs:
|
|||||||
test-unit:
|
test-unit:
|
||||||
name: Unit Tests
|
name: Unit Tests
|
||||||
runs-on: linux-latest
|
runs-on: linux-latest
|
||||||
|
env:
|
||||||
|
GOMODCACHE: /tmp/gomod-${{ github.run_id }}-unit
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -102,6 +105,8 @@ jobs:
|
|||||||
test-pgsql:
|
test-pgsql:
|
||||||
name: Integration Tests (PostgreSQL)
|
name: Integration Tests (PostgreSQL)
|
||||||
runs-on: linux-latest
|
runs-on: linux-latest
|
||||||
|
env:
|
||||||
|
GOMODCACHE: /tmp/gomod-${{ github.run_id }}-pgsql
|
||||||
services:
|
services:
|
||||||
pgsql:
|
pgsql:
|
||||||
image: postgres:15
|
image: postgres:15
|
||||||
|
|||||||
Reference in New Issue
Block a user