From c0b04320e1528d45d1ec1c87c17f9ca0720c73ee Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Mon, 30 Mar 2026 00:39:24 +0800 Subject: [PATCH] fix(ci): repair github actions runners Use the repository-installed TypeScript compiler in CI tests and restore docker/setup-buildx-action so the container workflow can use the GitHub Actions cache backend. --- .github/workflows/image.yml | 3 +++ tests/open-source-build.test.cjs | 10 +--------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 6734336..ef0e090 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -41,6 +41,9 @@ jobs: id: vars run: echo "image_name=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT" + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Extract image metadata id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 diff --git a/tests/open-source-build.test.cjs b/tests/open-source-build.test.cjs index 60b4df8..c296910 100644 --- a/tests/open-source-build.test.cjs +++ b/tests/open-source-build.test.cjs @@ -21,15 +21,7 @@ test('default build script uses standard TypeScript compiler', () => { }); test('project type-check build passes with tsc', () => { - const tscJsPath = path.join( - projectRoot, - '.codex-cache', - 'ts-compiler', - 'node_modules', - 'typescript', - 'lib', - 'tsc.js', - ); + const tscJsPath = path.join(projectRoot, 'node_modules', 'typescript', 'lib', 'tsc.js'); const result = spawnSync( process.execPath, [tscJsPath, '-p', '.', '--pretty', 'false'],