Skip to content

Merge pull request #392 from COS301-SE-2024/hotfix/documentation #1023

Merge pull request #392 from COS301-SE-2024/hotfix/documentation

Merge pull request #392 from COS301-SE-2024/hotfix/documentation #1023

Workflow file for this run

name: End-To-End Testing With Cypress
on:
push:
branches:
- develop
- master
- main
- 'feature/**'
pull_request:
branches:
- develop
- master
- main
- 'feature/**'
jobs:
Running-Tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
cd frontend
npm install
npm ci
- name: Run cypress
continue-on-error: true
run: |
cd frontend
npm run build
npm start &
npx cypress run
env:
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}