Skip to content

Update final project dependencies #28

Update final project dependencies

Update final project dependencies #28

Workflow file for this run

name: Cypress Tests
on:
push:
branches: [develop, main]
pull_request:
branches: [develop, main]
jobs:
cypress-run:
runs-on: ubuntu-latest
env:
# Server environment variables
PORT: 3000
MONGODB_URL: ${{ secrets.CYPRESS_MONGODB_URL }}
# Client environment variables
BASE_SERVER_URL: http://localhost:3000
steps:
- name: Checkout
uses: actions/checkout@v2
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Setup server and client
run: npm run setup
- name: Cypress run
uses: cypress-io/github-action@v6
with:
# start up the dev environment
start: npm run dev
browser: chrome
headless: true
- name: Upload videos
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: cypress/videos