From 2e153707a39390b24719eaad34da2202509d29e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 17 Jun 2024 12:07:46 +0900 Subject: [PATCH] chore: Enable more tests for `swc-ecosystem-ci` (#9065) --- .github/swc-ecosystem-ci/{todos => tests}/concurrently.ts | 0 .github/swc-ecosystem-ci/{todos => tests}/cva.ts | 0 .github/swc-ecosystem-ci/{todos => tests}/medusa.ts | 0 .github/swc-ecosystem-ci/todos/adonisjs-core.ts | 1 + .github/swc-ecosystem-ci/{tests => todos}/backstage.ts | 0 .github/swc-ecosystem-ci/todos/blueprint.ts | 1 + .github/swc-ecosystem-ci/todos/budibase.ts | 1 + .github/swc-ecosystem-ci/utils.ts | 4 ++-- .github/workflows/ecosystem-ci.yml | 4 +--- 9 files changed, 6 insertions(+), 5 deletions(-) rename .github/swc-ecosystem-ci/{todos => tests}/concurrently.ts (100%) rename .github/swc-ecosystem-ci/{todos => tests}/cva.ts (100%) rename .github/swc-ecosystem-ci/{todos => tests}/medusa.ts (100%) rename .github/swc-ecosystem-ci/{tests => todos}/backstage.ts (100%) diff --git a/.github/swc-ecosystem-ci/todos/concurrently.ts b/.github/swc-ecosystem-ci/tests/concurrently.ts similarity index 100% rename from .github/swc-ecosystem-ci/todos/concurrently.ts rename to .github/swc-ecosystem-ci/tests/concurrently.ts diff --git a/.github/swc-ecosystem-ci/todos/cva.ts b/.github/swc-ecosystem-ci/tests/cva.ts similarity index 100% rename from .github/swc-ecosystem-ci/todos/cva.ts rename to .github/swc-ecosystem-ci/tests/cva.ts diff --git a/.github/swc-ecosystem-ci/todos/medusa.ts b/.github/swc-ecosystem-ci/tests/medusa.ts similarity index 100% rename from .github/swc-ecosystem-ci/todos/medusa.ts rename to .github/swc-ecosystem-ci/tests/medusa.ts diff --git a/.github/swc-ecosystem-ci/todos/adonisjs-core.ts b/.github/swc-ecosystem-ci/todos/adonisjs-core.ts index acc9b4c08e5..df07f9b354b 100644 --- a/.github/swc-ecosystem-ci/todos/adonisjs-core.ts +++ b/.github/swc-ecosystem-ci/todos/adonisjs-core.ts @@ -8,5 +8,6 @@ export async function test(options: RunOptions) { branch: "develop", build: "build", test: "test", + nodeVerison: "20", }); } diff --git a/.github/swc-ecosystem-ci/tests/backstage.ts b/.github/swc-ecosystem-ci/todos/backstage.ts similarity index 100% rename from .github/swc-ecosystem-ci/tests/backstage.ts rename to .github/swc-ecosystem-ci/todos/backstage.ts diff --git a/.github/swc-ecosystem-ci/todos/blueprint.ts b/.github/swc-ecosystem-ci/todos/blueprint.ts index 2b2fb647715..462317a8879 100644 --- a/.github/swc-ecosystem-ci/todos/blueprint.ts +++ b/.github/swc-ecosystem-ci/todos/blueprint.ts @@ -8,5 +8,6 @@ export async function test(options: RunOptions) { branch: "develop", build: "compile", test: "test", + nodeVerison: "20", }); } diff --git a/.github/swc-ecosystem-ci/todos/budibase.ts b/.github/swc-ecosystem-ci/todos/budibase.ts index d2fab80670c..18cb1212b99 100644 --- a/.github/swc-ecosystem-ci/todos/budibase.ts +++ b/.github/swc-ecosystem-ci/todos/budibase.ts @@ -8,5 +8,6 @@ export async function test(options: RunOptions) { branch: "master", build: "build", test: "test", + nodeVerison: "20", }); } diff --git a/.github/swc-ecosystem-ci/utils.ts b/.github/swc-ecosystem-ci/utils.ts index e72ec59c937..c8d315059c2 100644 --- a/.github/swc-ecosystem-ci/utils.ts +++ b/.github/swc-ecosystem-ci/utils.ts @@ -224,7 +224,7 @@ export async function runInRepo(options: RunOptions & RepoOptions) { cd(dir); } if (options.agent == null) { - const detectedAgent = await detect({ cwd: dir, autoInstall: false }); + const detectedAgent = await detect({ cwd: dir, autoInstall: true }); if (detectedAgent == null) { throw new Error(`Failed to detect packagemanager in ${dir}`); } @@ -416,7 +416,7 @@ export async function applyPackageOverrides( await $`git clean -fdxq`; // remove current install if (!agent) { - agent = await detect({ cwd: dir, autoInstall: false }); + agent = await detect({ cwd: dir, autoInstall: true }); } if (!agent) { throw new Error(`failed to detect packageManager in ${dir}`); diff --git a/.github/workflows/ecosystem-ci.yml b/.github/workflows/ecosystem-ci.yml index 83809a88780..68e9e532a3b 100644 --- a/.github/workflows/ecosystem-ci.yml +++ b/.github/workflows/ecosystem-ci.yml @@ -59,9 +59,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v3 - with: - node-version: 18 + - uses: ./.github/actions/setup-node - run: | curl -fsSL https://fnm.vercel.app/install | bash