Skip to content

Commit

Permalink
♻️Moved cypress install to test job
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Sep 10, 2024
1 parent f6a1d20 commit 37a3fda
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
with:
path: |
node_modules
.cache/Cypress
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -29,9 +28,6 @@ jobs:
- name: Install dependencies
run: yarn install

- name: Install cypress
run: yarn cypress install --force

- name: Build app
run: yarn build

Expand All @@ -52,7 +48,6 @@ jobs:
with:
path: |
node_modules
.cache/Cypress
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -73,7 +68,6 @@ jobs:
with:
path: |
node_modules
.cache/Cypress
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
Expand All @@ -82,6 +76,9 @@ jobs:
uses: actions/[email protected]
with:
node-version: '20.10.0'

- name: Install cypress
run: yarn cypress install --force

- name: Run test
run: yarn cy:run

0 comments on commit 37a3fda

Please sign in to comment.