From 5fd0272c5ed2258039d99801c57760752745fe44 Mon Sep 17 00:00:00 2001 From: Kush Trivedi <44091822+kushthedude@users.noreply.github.com> Date: Fri, 8 Jan 2021 22:51:02 +0530 Subject: [PATCH] fix: cache all UI paths for cypress (#3454) * fix: cache all UI paths for cypress * Update pull_request.yml --- .github/workflows/pull_request.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 9b7958361..c2017ab41 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -1,6 +1,9 @@ name: Continuous Integration -on: [pull_request_target] +on: + pull_request_target: + paths-ignore: + - 'docs/**' jobs: server_tests: @@ -98,10 +101,19 @@ jobs: - name: Build OpenRefine run: ./refine build + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '12' + - name: Restore Tests dependency cache uses: actions/cache@v2.1.3 with: - path: '**/node_modules' + path: | + ~/cache + ~/.cache + **/node_modules + !~/cache/exclude key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn @@ -109,6 +121,8 @@ jobs: - name: Install test dependencies run: | cd ./main/tests/cypress + npm cache clean --force + npm i -g yarn yarn install - name: Test with Cypress on ${{ matrix.browser }}