fix(ci): update working-directory for workspace-server/ and workspace/ renames

- platform-build: working-directory platform → workspace-server
- golangci-lint: working-directory platform → workspace-server
- python-lint: working-directory workspace-template → workspace
- e2e-api: working-directory platform → workspace-server
- canvas-deploy-reminder: fix duplicate if: key (merged into single condition)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hongming Wang 2026-04-18 07:05:44 -07:00
parent a62ad0bd66
commit 04292f419c
2 changed files with 7 additions and 9 deletions

View File

@ -52,7 +52,7 @@ jobs:
runs-on: [self-hosted, macos, arm64]
defaults:
run:
working-directory: platform
working-directory: workspace-server
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
@ -66,7 +66,7 @@ jobs:
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: platform
working-directory: workspace-server
args: --timeout 3m
continue-on-error: true # Warn but don't block until codebase is clean
- name: Run tests with race detection and coverage
@ -129,10 +129,8 @@ jobs:
name: Canvas Deploy Reminder
runs-on: [self-hosted, macos, arm64]
needs: [changes, canvas-build]
if: needs.changes.outputs.canvas == 'true'
# Only fires on direct pushes to main (i.e. after a PR merges).
# PRs get canvas-build CI but no reminder — no deployment happens on PRs.
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
# Only fires on direct pushes to main (i.e. after staging→main promotion).
if: needs.changes.outputs.canvas == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
# Required to post commit comments via the GitHub API.
contents: write
@ -178,7 +176,7 @@ jobs:
runs-on: [self-hosted, macos, arm64]
defaults:
run:
working-directory: workspace-template
working-directory: workspace
steps:
- uses: actions/checkout@v4
# setup-python@v5 cannot write to /Users/runner (GitHub-hosted path) on

View File

@ -88,10 +88,10 @@ jobs:
echo "::error::Redis did not become ready in 15s"
exit 1
- name: Build platform
working-directory: platform
working-directory: workspace-server
run: go build -o platform-server ./cmd/server
- name: Start platform (background)
working-directory: platform
working-directory: workspace-server
run: |
./platform-server > platform.log 2>&1 &
echo $! > platform.pid