Skip to content

Commit

Permalink
try cache
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed Mar 5, 2024
1 parent 7755108 commit 8b6b406
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/use-deploy-ecs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,21 @@ jobs:
node-version-file: .tool-versions
cache: npm
cache-dependency-path: assets/package-lock.json
- run: npm --prefix assets install --ignore-scripts # needed to install cypress plugins
- name: Cache node modules
id: npm-cache
uses: actions/cache@v4
with:
path: |
~/.cache/Cypress
assets/node_modules
key: ci-cypress-${{ hashFiles('assets/package-lock.json') }}
restore-keys: |
ci-cypress-
ci-nodejs-cache-${{ hashFiles('assets/package-lock.json') }}
ci-nodejs-cache-
- name: Install dependencies if needed.
if: steps.npm-cache.outputs.cache-hit != 'true'
run: npm ci --prefix assets --omit=optional # needed to install cypress plugins
- run: npx --prefix assets cypress run --spec cypress/e2e/smoke.cy.js
env:
CYPRESS_BASE_URL: ${{ needs.deploy.outputs.deployment-url }}
Expand Down

0 comments on commit 8b6b406

Please sign in to comment.