Skip to content

Commit 1a7ab2b

Browse files
committed
concurrency added
1 parent 183bf54 commit 1a7ab2b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
name: Build
77
runs-on: self-hosted
88
strategy:
9+
max-parallel: 2
910
matrix:
1011
node-version: [16.x, 18.x]
1112
steps:
@@ -24,7 +25,9 @@ jobs:
2425
name: Lint Code
2526
needs: build
2627
runs-on: self-hosted
28+
concurrency: job-second-stage
2729
strategy:
30+
max-parallel: 2
2831
matrix:
2932
node-version: [16.x, 18.x]
3033
steps:
@@ -37,7 +40,9 @@ jobs:
3740
name: Unit Tests
3841
needs: build
3942
runs-on: self-hosted
43+
concurrency: job-second-stage
4044
strategy:
45+
max-parallel: 2
4146
matrix:
4247
node-version: [16.x, 18.x]
4348
steps:

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
name: Lint Code
2222
needs: build
2323
runs-on: self-hosted
24+
concurrency: job-second-stage
2425
steps:
2526
- name: Linting
2627
run: npm run lint
@@ -31,6 +32,7 @@ jobs:
3132
name: Unit Tests
3233
needs: build
3334
runs-on: self-hosted
35+
concurrency: job-second-stage
3436
steps:
3537
- name: Running unit tests
3638
run: npm run test:unit

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
],
2121
"scripts": {
2222
"build": "tsc",
23-
"prepublishOnly": "npm run build && npm run lint && npm run test",
2423
"prettier": "prettier --write src",
2524
"lint": "npm run lint:tests && npm run lint:src:agile && npm run lint:src:clients && npm run lint:src:services && npm run lint:src:version2 && npm run lint:src:version3 && npm run lint:src:files",
2625
"lint:tests": "npm run lint:base -- tests",

0 commit comments

Comments
 (0)