From c4fc01c7ff5717c0f01b7d07638ad3d36396dbd4 Mon Sep 17 00:00:00 2001 From: megumin Date: Fri, 25 Nov 2022 22:51:36 +0000 Subject: [skip ci] feat(ci): test web builds (#262) --- .github/workflows/test.yml | 5 ++++- package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59fa3d2..14f3084 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,5 +23,8 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Lint & Test if it compiles + - name: Lint & Test if desktop version compiles run: pnpm test + + - name: Lint & Test if web version compiles + run: pnpm testWeb diff --git a/package.json b/package.json index a168448..13e67b1 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "lint:fix": "pnpm lint --fix", "test": "pnpm lint && pnpm build && pnpm testTsc", + "testWeb": "pnpm lint && pnpm buildWeb && pnpm testTsc", "testTsc": "tsc --noEmit", "uninject": "node scripts/patcher/uninstall.js", "watch": "node scripts/build/build.mjs --watch" -- cgit