fix(ci): use R:\workspace as working directory for RAM disk tests

This commit is contained in:
Steve Yegge
2025-12-13 07:05:13 -08:00
parent 59e32e3529
commit 7a10377544

View File

@@ -72,12 +72,7 @@ jobs:
copy-workspace: true copy-workspace: true
- name: Prepare RAM disk directories - name: Prepare RAM disk directories
run: | run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod
New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod
Write-Host "Files on R: drive:"
Get-ChildItem R:\ -ErrorAction SilentlyContinue | Select-Object Name
Write-Host "Looking for go.mod:"
Get-ChildItem R:\ -Filter "go.mod" -Recurse -ErrorAction SilentlyContinue | Select-Object FullName
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
@@ -90,8 +85,8 @@ 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:\workspace
run: | run: |
cd R:\
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/...
@@ -116,10 +111,7 @@ jobs:
copy-workspace: true copy-workspace: true
- name: Prepare RAM disk directories - name: Prepare RAM disk directories
run: | run: New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod
New-Item -ItemType Directory -Force -Path R:\tmp, R:\go-cache, R:\go-mod
Write-Host "Files on R: drive:"
Get-ChildItem R:\ -ErrorAction SilentlyContinue | Select-Object Name
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v5
@@ -132,9 +124,8 @@ 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
run: | working-directory: R:\workspace
cd R:\ run: go test -v -short -timeout=30m -parallel=4 ./internal/...
go test -v -short -timeout=30m -parallel=4 ./internal/...
lint: lint:
name: Lint name: Lint