Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [windows-latest]
node: ['18.18.0']

steps:
- name: Checkout code
Expand All @@ -16,7 +21,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: ${{ matrix.node }}

- name: Enable Corepack
run: |
Expand Down
2 changes: 1 addition & 1 deletion tests/templateSanity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@

it("should successfully install all dependencies", async () => {
await expect(installDependencies(cwd)).resolves.not.toThrow();
}, 60_000);
}, 200_000);

it("should successfully run typescheck", async () => {
await expect(checkTypes(cwd)).resolves.not.toThrow();

Check failure on line 19 in tests/templateSanity.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18.18.0)

templates/customProductsCatalog.spec.ts > custom-products-catalog sanity > should successfully run typescheck

AssertionError: promise rejected "Error: Command failed with exit code 1: y…" instead of resolving ❯ templateSanity.ts:19:35 Caused by: Caused by: Error: Command failed with exit code 1: yarn typecheck Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation) $ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] [--require #0] <scriptName> ... ❯ runCommand testkit.ts:15:13 ❯ checkTypes testkit.ts:48:3 ❯ templateSanity.ts:19:7

Check failure on line 19 in tests/templateSanity.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18.18.0)

templates/inventoryCountdown.spec.ts > inventory-countdown sanity > should successfully run typescheck

AssertionError: promise rejected "Error: Command failed with exit code 1: y…" instead of resolving ❯ templateSanity.ts:19:35 Caused by: Error: Command failed with exit code 1: yarn typecheck Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation) $ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] [--require #0] <scriptName> ... ❯ runCommand testkit.ts:15:13 ❯ checkTypes testkit.ts:48:3 ❯ templateSanity.ts:19:7

Check failure on line 19 in tests/templateSanity.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18.18.0)

templates/mixpanelAnalytics.spec.ts > mixpanel-analytics sanity > should successfully run typescheck

AssertionError: promise rejected "Error: Command failed with exit code 1: y…" instead of resolving ❯ templateSanity.ts:19:35 Caused by: Error: Command failed with exit code 1: yarn typecheck Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation) $ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] [--require #0] <scriptName> ... ❯ runCommand testkit.ts:15:13 ❯ checkTypes testkit.ts:48:3 ❯ templateSanity.ts:19:7
}, 60_000);

it("should build the app successfully", async () => {
await expect(buildApp(cwd)).resolves.not.toThrow();

Check failure on line 23 in tests/templateSanity.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18.18.0)

templates/customProductsCatalog.spec.ts > custom-products-catalog sanity > should build the app successfully

AssertionError: promise rejected "Error: Command failed with exit code 1: y…" instead of resolving ❯ templateSanity.ts:23:33 Caused by: Caused by: Error: Command failed with exit code 1: yarn build Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation) $ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] [--require #0] <scriptName> ... ❯ runCommand testkit.ts:15:13 ❯ buildApp testkit.ts:51:3 ❯ templateSanity.ts:23:7

Check failure on line 23 in tests/templateSanity.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18.18.0)

templates/inventoryCountdown.spec.ts > inventory-countdown sanity > should build the app successfully

AssertionError: promise rejected "Error: Command failed with exit code 1: y…" instead of resolving ❯ templateSanity.ts:23:33 Caused by: Error: Command failed with exit code 1: yarn build Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation) $ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] [--require #0] <scriptName> ... ❯ runCommand testkit.ts:15:13 ❯ buildApp testkit.ts:51:3 ❯ templateSanity.ts:23:7

Check failure on line 23 in tests/templateSanity.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 18.18.0)

templates/mixpanelAnalytics.spec.ts > mixpanel-analytics sanity > should build the app successfully

AssertionError: promise rejected "Error: Command failed with exit code 1: y…" instead of resolving ❯ templateSanity.ts:23:33 Caused by: Error: Command failed with exit code 1: yarn build Usage Error: Couldn't find the node_modules state file - running an install might help (findPackageLocation) $ yarn run [--inspect] [--inspect-brk] [-T,--top-level] [-B,--binaries-only] [--require #0] <scriptName> ... ❯ runCommand testkit.ts:15:13 ❯ buildApp testkit.ts:51:3 ❯ templateSanity.ts:23:7
}, 60_000)
});
}
Expand Down
Loading