Skip to content

Commit c2dae52

Browse files
authored
Build updates (#1272)
The CI seems to faster with parallel=1. Also avoid unnecessarily building the extension again while testing.
1 parent cac62d6 commit c2dae52

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
- name: Check formatting
2626
run: pnpm run format:check
2727
- name: Build
28-
run: pnpm exec nx affected --target=build --parallel=3
28+
run: pnpm exec nx affected --target=build --parallel=1
2929
- name: Lint
30-
run: pnpm exec nx affected --target=lint --parallel=3
30+
run: pnpm exec nx affected --target=lint --parallel=1
3131
- name: Test
3232
uses: GabrielBB/xvfb-action@v1
3333
with:
34-
run: pnpm exec nx affected --target=test --parallel=3
34+
run: pnpm exec nx affected --target=test --parallel=1

extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test:app": "cross-env BABEL_ENV=test jest test/app",
2323
"test:chrome": "jest test/chrome",
2424
"test:electron": "pnpm run build:test:electron:fixture && jest test/electron",
25-
"test": "pnpm run test:app && pnpm run build:extension && pnpm run test:chrome && pnpm run test:electron",
25+
"test": "pnpm run test:app && pnpm run test:chrome && pnpm run test:electron",
2626
"build:test:electron:fixture": "webpack --config test/electron/fixture/webpack.config.js",
2727
"type-check": "tsc --noEmit"
2828
},

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"scripts": {
2121
"format": "prettier --write .",
2222
"format:check": "prettier --check .",
23-
"build:all": "nx run-many --target=build --all",
24-
"lint:all": "nx run-many --target=lint --all",
25-
"test:all": "nx run-many --target=test --all",
26-
"clean:all": "nx run-many --target=clean --all",
23+
"build:all": "nx run-many --target=build --all --parallel=1",
24+
"lint:all": "nx run-many --target=lint --all --parallel=1",
25+
"test:all": "nx run-many --target=test --all --parallel=1",
26+
"clean:all": "nx run-many --target=clean --all --parallel=1",
2727
"release": "pnpm build:all && changeset publish"
2828
},
2929
"workspaces": [

0 commit comments

Comments
 (0)