Release 6.5.0 1 #10521
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
types: [ready_for_review] | |
branches: | |
- develop | |
- develop-* | |
- release/** | |
workflow_dispatch: | |
# empty as it is used only to manually trigger the workflow | |
env: | |
CYPRESS_KEY: ${{ secrets.CYPRESS_KEY }} | |
NODE_VERSION: '18' | |
concurrency: | |
group: lighthouse-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
name: Lighthouse | |
jobs: | |
lighthouse: | |
name: Lighthouse score validation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Cache node_modules | |
id: cache-node-modules | |
uses: actions/cache@v2 | |
with: | |
path: | | |
node_modules | |
projects/storefrontapp-e2e-cypress/node_modules | |
~/.cache/Cypress | |
key: nodemodules-${{ github.event.pull_request.base.sha }} | |
restore-keys: nodemodules-${{ github.event.pull_request.base.sha }} | |
- name: Package installation | |
run: npm ci | |
- name: Run lighthouse score validation | |
run: | | |
ci-scripts/lhci.sh |