Remove npm cache from the auto test workflow (#3359)

This commit is contained in:
Louis Lam 2023-07-05 21:03:02 +08:00 committed by GitHub
parent 13ae878ee8
commit 19873e5b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node # This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions # For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Auto Test name: Auto Test
@ -33,7 +33,6 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm install npm@latest -g - run: npm install npm@latest -g
- run: npm install - run: npm install
- run: npm run build - run: npm run build
@ -62,7 +61,6 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
cache: 'npm'
- run: npm install npm@latest -g - run: npm install npm@latest -g
- run: npm ci --production - run: npm ci --production
@ -77,7 +75,6 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 14 node-version: 14
cache: 'npm'
- run: npm install - run: npm install
- run: npm run lint - run: npm run lint
@ -92,7 +89,6 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 14 node-version: 14
cache: 'npm'
- run: npm install - run: npm install
- run: npm run build - run: npm run build
- run: npm run cy:test - run: npm run cy:test
@ -108,7 +104,6 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 14 node-version: 14
cache: 'npm'
- run: npm install - run: npm install
- run: npm run build - run: npm run build
- run: npm run cy:run:unit - run: npm run cy:run:unit