Build updates (#1272)

The CI seems to faster with parallel=1. Also avoid unnecessarily building the extension again while testing.
This commit is contained in:
Nathan Bierema 2022-11-07 09:42:25 -05:00 committed by GitHub
parent cac62d6e8d
commit c2dae52c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View File

@ -25,10 +25,10 @@ jobs:
- name: Check formatting
run: pnpm run format:check
- name: Build
run: pnpm exec nx affected --target=build --parallel=3
run: pnpm exec nx affected --target=build --parallel=1
- name: Lint
run: pnpm exec nx affected --target=lint --parallel=3
run: pnpm exec nx affected --target=lint --parallel=1
- name: Test
uses: GabrielBB/xvfb-action@v1
with:
run: pnpm exec nx affected --target=test --parallel=3
run: pnpm exec nx affected --target=test --parallel=1

View File

@ -22,7 +22,7 @@
"test:app": "cross-env BABEL_ENV=test jest test/app",
"test:chrome": "jest test/chrome",
"test:electron": "pnpm run build:test:electron:fixture && jest test/electron",
"test": "pnpm run test:app && pnpm run build:extension && pnpm run test:chrome && pnpm run test:electron",
"test": "pnpm run test:app && pnpm run test:chrome && pnpm run test:electron",
"build:test:electron:fixture": "webpack --config test/electron/fixture/webpack.config.js",
"type-check": "tsc --noEmit"
},

View File

@ -20,10 +20,10 @@
"scripts": {
"format": "prettier --write .",
"format:check": "prettier --check .",
"build:all": "nx run-many --target=build --all",
"lint:all": "nx run-many --target=lint --all",
"test:all": "nx run-many --target=test --all",
"clean:all": "nx run-many --target=clean --all",
"build:all": "nx run-many --target=build --all --parallel=1",
"lint:all": "nx run-many --target=lint --all --parallel=1",
"test:all": "nx run-many --target=test --all --parallel=1",
"clean:all": "nx run-many --target=clean --all --parallel=1",
"release": "pnpm build:all && changeset publish"
},
"workspaces": [