[skip ci] feat(ci): test web builds (#262)

This commit is contained in:
megumin 2022-11-25 22:51:36 +00:00 committed by GitHub
parent 5a94201578
commit c4fc01c7ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

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

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