chore: Enable more tests for swc-ecosystem-ci (#9065)

This commit is contained in:
Donny/강동윤 2024-06-17 12:07:46 +09:00 committed by GitHub
parent e755bce438
commit 2e153707a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 6 additions and 5 deletions

View File

@ -8,5 +8,6 @@ export async function test(options: RunOptions) {
branch: "develop",
build: "build",
test: "test",
nodeVerison: "20",
});
}

View File

@ -8,5 +8,6 @@ export async function test(options: RunOptions) {
branch: "develop",
build: "compile",
test: "test",
nodeVerison: "20",
});
}

View File

@ -8,5 +8,6 @@ export async function test(options: RunOptions) {
branch: "master",
build: "build",
test: "test",
nodeVerison: "20",
});
}

View File

@ -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}`);

View File

@ -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