Update regression-cron.yaml #1259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cypress Tests | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
cypress: | |
name: Run Cypress Tests | |
runs-on: ubuntu-latest | |
steps: | |
# Step 1: Checkout the code | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Step 2: Set up Node.js environment | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# Step 3: Install dependencies | |
- name: Install dependencies | |
run: npm ci | |
# Step 4: Run Cypress tests | |
- name: Run Cypress | |
uses: cypress-io/github-action@v5 | |
with: | |
browser: chrome | |
headless: true | |
config: video=false | |
env: | |
username: ${{ secrets.USER }} | |
password: ${{ secrets.PASS }} | |
# Step 5: Upload artifacts (optional, for videos/screenshots) | |
- name: Upload artifacts | |
if: always() # Ensure artifacts are uploaded even if the tests fail | |
uses: actions/upload-artifact@v3 | |
with: | |
name: cypress-artifacts | |
path: cypress/videos/ |