Skip to content

Commit

Permalink
concurrency added
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactoring committed Sep 6, 2023
1 parent 183bf54 commit 1a7ab2b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
name: Build
runs-on: self-hosted
strategy:
max-parallel: 2
matrix:
node-version: [16.x, 18.x]
steps:
Expand All @@ -24,7 +25,9 @@ jobs:
name: Lint Code
needs: build
runs-on: self-hosted
concurrency: job-second-stage
strategy:
max-parallel: 2
matrix:
node-version: [16.x, 18.x]
steps:
Expand All @@ -37,7 +40,9 @@ jobs:
name: Unit Tests
needs: build
runs-on: self-hosted
concurrency: job-second-stage
strategy:
max-parallel: 2
matrix:
node-version: [16.x, 18.x]
steps:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
name: Lint Code
needs: build
runs-on: self-hosted
concurrency: job-second-stage
steps:
- name: Linting
run: npm run lint
Expand All @@ -31,6 +32,7 @@ jobs:
name: Unit Tests
needs: build
runs-on: self-hosted
concurrency: job-second-stage
steps:
- name: Running unit tests
run: npm run test:unit
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
],
"scripts": {
"build": "tsc",
"prepublishOnly": "npm run build && npm run lint && npm run test",
"prettier": "prettier --write src",
"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",
"lint:tests": "npm run lint:base -- tests",
Expand Down

0 comments on commit 1a7ab2b

Please sign in to comment.