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 f854db2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,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 @@ -54,8 +56,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 f854db2

Please sign in to comment.