From 092de4e3a57f7dec4875cde4c9ff4d01917a7e58 Mon Sep 17 00:00:00 2001 From: Theodore Kruczek Date: Sat, 13 Jan 2024 00:48:06 -0500 Subject: [PATCH] ci: :adhesive_bandage: make ci pipeline sequential --- .github/workflows/ci.yml | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37bc707..fc0d2fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} lint: + needs: compliance runs-on: ubuntu-latest steps: - uses: actions/checkout@v4.1.1 @@ -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: @@ -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: @@ -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