Skip to content

fix changed login test #14

fix changed login test

fix changed login test #14

name: End-to-end tests

Check failure on line 1 in .github/workflows/cypress-test-basic.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cypress-test-basic.yaml

Invalid workflow file

`c` is not a valid event name
on:
c:
workflow_dispatch:
pull_request:
branches:
- main
- release
- dev
types:
- opened
- reopened
jobs:
cypress-run:
runs-on: ubuntu-22.04
# container:
# image: cypress/included
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Docker image
uses: actions/cache@v3
with:
path: /tmp/cypress.tar
key: cypress-image-${{ hashFiles('**/Dockerfile') }}
- name: Load cached Docker image
run: |
if [ -f /tmp/cypress.tar ]; then
docker load -i /tmp/cypress.tar
else
docker pull cypress/included
docker save cypress/included > /tmp/cypress.tar
fi
- name: Cache node modules
uses: actions/cache@v3
with:
path: frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: |
cd frontend
npm install -g yarn --force
yarn install
- name: Cache build outputs
uses: actions/cache@v3
with:
path: frontend/build
key: ${{ runner.os }}-build-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-
- name: Start server
run: |
cd frontend
yarn build
yarn start &
- name: Cypress run
uses: cypress-io/github-action@v6
with:
working-directory: frontend