diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c242d5388..53fbd0884 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,6 +6,7 @@ jobs: name: Build runs-on: self-hosted strategy: + max-parallel: 2 matrix: node-version: [16.x, 18.x] steps: @@ -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: @@ -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: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e27eb2a47..e93d7883e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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 diff --git a/package.json b/package.json index 01945d9c8..dcead0d90 100644 --- a/package.json +++ b/package.json @@ -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",