fix: cache all UI paths for cypress (#3454)

* fix: cache all UI paths for cypress

* Update pull_request.yml
This commit is contained in:
Kush Trivedi 2021-01-08 22:51:02 +05:30 committed by GitHub
parent 8f790a90b6
commit 5fd0272c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,9 @@
name: Continuous Integration name: Continuous Integration
on: [pull_request_target] on:
pull_request_target:
paths-ignore:
- 'docs/**'
jobs: jobs:
server_tests: server_tests:
@ -98,10 +101,19 @@ jobs:
- name: Build OpenRefine - name: Build OpenRefine
run: ./refine build run: ./refine build
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
- 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
@ -109,6 +121,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 }}