Skip to content

Cypress Tests

Cypress Tests #100

Workflow file for this run

name: Cypress Tests
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
workflow_dispatch: # For manual triggering
schedule:
- cron: '0 19 * * *' # Runs every day at 3 AM GMT+8 (19:00 UTC)
jobs:
cypress-run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Run Cypress tests
run: npm run test:headless
- name: Upload test results
uses: actions/upload-artifact@v4
if: failure() # Upload results only if there's a failure
with:
name: cypress-results
path: cypress/results
- name: Post Setup Node.js
if: always()
run: echo "Cleaning up after tests"
- name: Post Checkout
if: always()
run: echo "Final cleanup"