Skip to content

Run end-to-end tests #5

Run end-to-end tests

Run end-to-end tests #5

Workflow file for this run

name: Run end-to-end tests
on:
deployment_status:
jobs:
build:
name: Run end-to-end tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: ./frontend/.nvmrc
- name: Get NPM cache folder path
id: npm-cache-folder
run: |
echo "path=$(npm config get cache)" >> $GITHUB_OUTPUT
- name: Set up NPM cache
uses: actions/cache@v3
id: npm-cache
env:
cache-name: frontend-node-modules
with:
path: ${{ steps.npm-cache-folder.outputs.path }}
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
- name: Install dependencies
run: |
npm ci
- name: Run end-to-end tests via Cypress
env:
PUBLIC_URL: ${{ github.event.deployment_status.target_url }}
run: |
npm run test-only