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