ci(tst-03): manual checkout for Windows host-mode jobs (act can't stage JS actions)
ci / live-mxaccess (push) Waiting to run
ci / live-mxaccess (pull_request) Waiting to run
ci / windows (push) Failing after 5s
ci / windows (pull_request) Failing after 3s
ci / java (push) Successful in 1m56s
ci / portable (push) Successful in 7m3s
ci / java (pull_request) Successful in 1m57s
ci / portable (pull_request) Successful in 6m56s
ci / live-mxaccess (push) Waiting to run
ci / live-mxaccess (pull_request) Waiting to run
ci / windows (push) Failing after 5s
ci / windows (pull_request) Failing after 3s
ci / java (push) Successful in 1m56s
ci / portable (push) Successful in 7m3s
ci / java (pull_request) Successful in 1m57s
ci / portable (pull_request) Successful in 6m56s
act host-mode on Windows does not materialize a JS action's dist/ (actions/checkout fails with "Cannot find module .../dist/index.js"), so the windows + live-mxaccess jobs check the repo out with plain git instead (public repo, anonymous https clone of GITHUB_SHA). The self-hosted windev runner otherwise works (host mode, persistent). Claude-Session: https://claude.ai/code/session_01DMXXvNuPekkkrTEyPNxEkW
This commit is contained in:
+17
-2
@@ -125,7 +125,15 @@ jobs:
|
||||
# and MXAccess-adjacent code. Not required for a green portable build; runs where a runner exists.
|
||||
runs-on: [self-hosted, windows]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# act host-mode on Windows cannot stage JS actions (actions/checkout's dist/ is not
|
||||
# materialized), so check the repo out manually. Public repo -> anonymous https clone.
|
||||
- name: Checkout (manual)
|
||||
shell: pwsh
|
||||
run: |
|
||||
git init -q .
|
||||
git remote add origin "https://gitea.dohertylan.com/$env:GITHUB_REPOSITORY"
|
||||
git -c protocol.version=2 fetch -q --depth 1 origin $env:GITHUB_SHA
|
||||
git checkout -q --force FETCH_HEAD
|
||||
- name: Build x86 Worker
|
||||
run: dotnet build src/ZB.MOM.WW.MxGateway.Worker/ZB.MOM.WW.MxGateway.Worker.csproj -p:Platform=x86
|
||||
- name: Worker tests
|
||||
@@ -138,6 +146,13 @@ jobs:
|
||||
env:
|
||||
MXGATEWAY_RUN_LIVE_MXACCESS_TESTS: '1'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# Manual checkout — same act host-mode constraint as the windows job above.
|
||||
- name: Checkout (manual)
|
||||
shell: pwsh
|
||||
run: |
|
||||
git init -q .
|
||||
git remote add origin "https://gitea.dohertylan.com/$env:GITHUB_REPOSITORY"
|
||||
git -c protocol.version=2 fetch -q --depth 1 origin $env:GITHUB_SHA
|
||||
git checkout -q --force FETCH_HEAD
|
||||
- name: Live MXAccess smoke
|
||||
run: dotnet test src/ZB.MOM.WW.MxGateway.IntegrationTests/ZB.MOM.WW.MxGateway.IntegrationTests.csproj --filter FullyQualifiedName~WorkerLiveMxAccessSmokeTests
|
||||
|
||||
Reference in New Issue
Block a user