Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/actions/e2e-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inputs:
libs-cache-key:
description: 'Cache key for built libraries'
required: true
e2e-cache-key:
description: 'Cache key for e2e libraries'
required: true
app-cache-key:
description: 'Cache key for built app'
required: true
Expand All @@ -37,3 +40,9 @@ runs:
with:
cache-key: ${{ inputs.app-cache-key }}
fail-on-cache-miss: true

- name: Restore e2e libraries
uses: ./.github/actions/restore-e2e-libraries
with:
cache-key: ${{ inputs.e2e-cache-key }}
fail-on-cache-miss: true
20 changes: 20 additions & 0 deletions .github/actions/restore-e2e-libraries/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Restore E2E Libraries'
description: 'Restore built e2e libraries from cache'
inputs:
cache-key:
description: 'Cache key for e2e libraries'
required: true
fail-on-cache-miss:
description: 'Whether to fail if cache miss occurs'
required: false
default: 'true'
runs:
using: 'composite'
steps:
- name: Restore e2e libraries
uses: actions/cache@v4
with:
path: |
projects/storefrontapp-e2e-cypress/node_modules
key: nodemodules-${{ inputs.cache-key }}
fail-on-cache-miss: ${{ inputs.fail-on-cache-miss }}
1 change: 1 addition & 0 deletions .github/workflows/ci-merge-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ jobs:
cache-key-base: ${{ github.event.pull_request.base.sha }}
libs-cache-key: ${{ github.event.pull_request.head.sha || github.run_id }}
app-cache-key: ci-b2c-csr-${{ github.event.pull_request.head.sha || github.run_id }}
e2e-cache-key: ${{ github.event.pull_request.base.sha || github.event.pull_request.head.sha || github.run_id }}-${{ hashFiles('**/package-lock.json') }}
- name: Run e2es
env:
SPA_ENV: ci,b2c
Expand Down
Loading