Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
chore: disable caching node_modules in test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Dec 22, 2023
1 parent f467b21 commit 2c044e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ jobs:
- run: yarn lint --max-warnings=0
- uses: actions/cache@v2
with:
path: '*'
key: v2-${{ github.sha }}-${{ matrix.node }}
path: |
'*'
'!node_modules'
'!**/node_modules'
test:
runs-on: ubuntu-latest
needs: build
Expand Down Expand Up @@ -54,8 +57,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install packages
run: yarn install --frozen-lockfile --check-files
- name: Test ${{ matrix.package }}
run: cd packages/${{ matrix.package }} && yarn test
working-directory: packages/${{ matrix.package }}
run: yarn test
# run: cd packages/${{ matrix.package }} && yarn test --coverage
env:
CI: true
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ jobs:
- run: yarn lint --max-warnings=0
- uses: actions/cache@v2
with:
path: '*'
key: v2-${{ github.sha }}-${{ matrix.node }}
path: |
'*'
!node_modules
test:
runs-on: ubuntu-latest
needs: build
Expand Down Expand Up @@ -53,8 +55,11 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install packages
run: yarn install --frozen-lockfile --check-files
- name: Test ${{ matrix.package }}
run: cd packages/${{ matrix.package }} && yarn test
working-directory: packages/${{ matrix.package }}
run: yarn test
# run: cd packages/${{ matrix.package }} && yarn test --coverage
env:
CI: true
Expand Down

0 comments on commit 2c044e3

Please sign in to comment.