ci: clear cache in snapshot_release workflow (#3470)
Signed-off-by: Kush Trivedi <kushthedude@gmail.com>
This commit is contained in:
parent
b98b75deaa
commit
827525c92d
15
.github/workflows/snapshot_release.yml
vendored
15
.github/workflows/snapshot_release.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cypress_tests:
|
ui_tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
@ -29,6 +29,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
java-version: 8
|
java-version: 8
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
|
||||||
- name: Install Edge
|
- name: Install Edge
|
||||||
if: matrix.browser == 'edge'
|
if: matrix.browser == 'edge'
|
||||||
run: |
|
run: |
|
||||||
@ -45,7 +50,11 @@ jobs:
|
|||||||
- name: Restore Tests dependency cache
|
- name: Restore Tests dependency cache
|
||||||
uses: actions/cache@v2.1.3
|
uses: actions/cache@v2.1.3
|
||||||
with:
|
with:
|
||||||
path: '**/node_modules'
|
path: |
|
||||||
|
~/cache
|
||||||
|
~/.cache
|
||||||
|
**/node_modules
|
||||||
|
!~/cache/exclude
|
||||||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-yarn
|
${{ runner.os }}-yarn
|
||||||
@ -53,6 +62,8 @@ jobs:
|
|||||||
- name: Install test dependencies
|
- name: Install test dependencies
|
||||||
run: |
|
run: |
|
||||||
cd ./main/tests/cypress
|
cd ./main/tests/cypress
|
||||||
|
npm cache clean --force
|
||||||
|
npm i -g yarn
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
- name: Test with Cypress on ${{ matrix.browser }}
|
- name: Test with Cypress on ${{ matrix.browser }}
|
||||||
|
Loading…
Reference in New Issue
Block a user