Skip to content

Commit

Permalink
ci: 🩹 make ci pipeline sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
thkruz committed Jan 13, 2024
1 parent 21a2971 commit 092de4e
Showing 1 changed file with 10 additions and 26 deletions.
36 changes: 10 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
lint:
needs: compliance
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
Expand All @@ -24,24 +25,10 @@ jobs:
with:
node-version: '20.x'

- uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: |
~/.npm
**/lib
key: ${{ runner.os }}-build- ${{ env.cache-name }}- ${{hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm ci
- run: npm ci --ignore-scripts

- run: npm run lint
build:
name: build
needs: lint
runs-on: ubuntu-latest
steps:
Expand All @@ -56,17 +43,15 @@ jobs:
cache-name: cache-node-modules
with:
path: |
~/.npm
**/lib
key: ${{ runner.os }}-build- ${{ env.cache-name }}- ${{hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-node-
- run: npm ci --ignore-scripts

- run: npm run build
test:
name: test
needs: build
runs-on: ubuntu-latest
steps:
Expand All @@ -81,13 +66,12 @@ jobs:
cache-name: cache-node-modules
with:
path: |
~/.npm
**/lib
key: ${{ runner.os }}-build- ${{ env.cache-name }}- ${{hashFiles('**/package-lock.json') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
${{ runner.os }}-node-
- run: npm ci --ignore-scripts

- name: Test
run: npm run test:nobuild

0 comments on commit 092de4e

Please sign in to comment.