fix(ci): use copy-workspace to move code to RAM disk
Can't checkout directly to R: drive. Instead: 1. Checkout normally 2. Use copy-workspace: true to copy to RAM disk 3. Run build/tests from R: working directory 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
+12
-14
@@ -62,18 +62,17 @@ jobs:
|
|||||||
GOCACHE: R:\go-cache
|
GOCACHE: R:\go-cache
|
||||||
GOMODCACHE: R:\go-mod
|
GOMODCACHE: R:\go-mod
|
||||||
steps:
|
steps:
|
||||||
- name: Setup RAM Disk
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Setup RAM Disk and copy workspace
|
||||||
uses: chad-golden/setup-ramdisk@v1.0.1
|
uses: chad-golden/setup-ramdisk@v1.0.1
|
||||||
with:
|
with:
|
||||||
size-in-mb: 4096
|
size-in-mb: 4096
|
||||||
drive-letter: 'R'
|
drive-letter: 'R'
|
||||||
|
copy-workspace: true
|
||||||
|
|
||||||
- name: Prepare RAM disk directories
|
- name: Prepare RAM disk directories
|
||||||
run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod, R:\work
|
run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod
|
||||||
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
path: R:\work
|
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
@@ -86,7 +85,7 @@ jobs:
|
|||||||
git config --global user.email "ci@beads.test"
|
git config --global user.email "ci@beads.test"
|
||||||
|
|
||||||
- name: Build and Test cmd package
|
- name: Build and Test cmd package
|
||||||
working-directory: R:\work
|
working-directory: R:\
|
||||||
run: |
|
run: |
|
||||||
go build -v ./cmd/bd
|
go build -v ./cmd/bd
|
||||||
go test -v -short -timeout=30m -parallel=4 ./cmd/...
|
go test -v -short -timeout=30m -parallel=4 ./cmd/...
|
||||||
@@ -102,18 +101,17 @@ jobs:
|
|||||||
GOCACHE: R:\go-cache
|
GOCACHE: R:\go-cache
|
||||||
GOMODCACHE: R:\go-mod
|
GOMODCACHE: R:\go-mod
|
||||||
steps:
|
steps:
|
||||||
- name: Setup RAM Disk
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Setup RAM Disk and copy workspace
|
||||||
uses: chad-golden/setup-ramdisk@v1.0.1
|
uses: chad-golden/setup-ramdisk@v1.0.1
|
||||||
with:
|
with:
|
||||||
size-in-mb: 4096
|
size-in-mb: 4096
|
||||||
drive-letter: 'R'
|
drive-letter: 'R'
|
||||||
|
copy-workspace: true
|
||||||
|
|
||||||
- name: Prepare RAM disk directories
|
- name: Prepare RAM disk directories
|
||||||
run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod, R:\work
|
run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod
|
||||||
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
path: R:\work
|
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
@@ -126,7 +124,7 @@ jobs:
|
|||||||
git config --global user.email "ci@beads.test"
|
git config --global user.email "ci@beads.test"
|
||||||
|
|
||||||
- name: Test internal packages
|
- name: Test internal packages
|
||||||
working-directory: R:\work
|
working-directory: R:\
|
||||||
run: go test -v -short -timeout=30m -parallel=4 ./internal/...
|
run: go test -v -short -timeout=30m -parallel=4 ./internal/...
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
|||||||
Reference in New Issue
Block a user