Merge pull request #26 from TheRealOwenRees/TheRealOwenRees-patch-1

Update cypress.yml
This commit is contained in:
Owen Rees
2023-06-24 21:17:49 +02:00
committed by GitHub
+14
View File
@@ -13,6 +13,20 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache npm and NextJs build
uses: actions/cache@v3
with:
# See here for caching with `yarn` https://github.com/actions/cache/blob/main/examples#node---yarn or you can leverage caching with actions/setup-node https://github.com/actions/setup-node
path: |
~/.npm
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Cypress run
# Uses the official Cypress GitHub action https://github.com/cypress-io/github-action
uses: cypress-io/github-action@v4