mirror of
https://github.com/swc-project/swc.git
synced 2024-11-23 09:38:16 +03:00
chore: Enable more tests for swc-ecosystem-ci
(#9065)
This commit is contained in:
parent
e755bce438
commit
2e153707a3
@ -8,5 +8,6 @@ export async function test(options: RunOptions) {
|
||||
branch: "develop",
|
||||
build: "build",
|
||||
test: "test",
|
||||
nodeVerison: "20",
|
||||
});
|
||||
}
|
||||
|
1
.github/swc-ecosystem-ci/todos/blueprint.ts
vendored
1
.github/swc-ecosystem-ci/todos/blueprint.ts
vendored
@ -8,5 +8,6 @@ export async function test(options: RunOptions) {
|
||||
branch: "develop",
|
||||
build: "compile",
|
||||
test: "test",
|
||||
nodeVerison: "20",
|
||||
});
|
||||
}
|
||||
|
1
.github/swc-ecosystem-ci/todos/budibase.ts
vendored
1
.github/swc-ecosystem-ci/todos/budibase.ts
vendored
@ -8,5 +8,6 @@ export async function test(options: RunOptions) {
|
||||
branch: "master",
|
||||
build: "build",
|
||||
test: "test",
|
||||
nodeVerison: "20",
|
||||
});
|
||||
}
|
||||
|
4
.github/swc-ecosystem-ci/utils.ts
vendored
4
.github/swc-ecosystem-ci/utils.ts
vendored
@ -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}`);
|
||||
|
4
.github/workflows/ecosystem-ci.yml
vendored
4
.github/workflows/ecosystem-ci.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user