Skip to content

Commit

Permalink
fix(ci): cypress nightly (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jul 18, 2024
1 parent cdadae7 commit 165f5f3
Showing 1 changed file with 10 additions and 94 deletions.
104 changes: 10 additions & 94 deletions .github/workflows/cypress-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,99 +2,15 @@ name: Cypress Nightly

on:
workflow_dispatch:
# schedule:
# # runs e2e tests every day at 4am
# - cron: '0 4 * * *'

env:
REGISTRY: ghcr.io
NAME: nrsparwebapp
schedule:
# runs e2e tests every day at 4am
- cron: '0 4 * * *'

jobs:
e2e-chrome:
runs-on: ubuntu-22.04
name: E2E on Chrome
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cypress run
uses: cypress-io/github-action@v4
with:
browser: chrome
env:
CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }}
CYPRESS_USERNAME: ${{ vars.CYPRESS_USERNAME }}

- name: Upload screenshots on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots-chrome
path: cypress/screenshots

- name: Upload videos
uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos-chrome
path: cypress/videos

e2e-firefox:
runs-on: ubuntu-22.04
container:
image: cypress/included:11.2.0
options: --user 1001
name: E2E on Firefox
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cypress run
run: cypress run --browser firefox
env:
CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }}
CYPRESS_USERNAME: ${{ vars.CYPRESS_USERNAME }}

- name: Upload screenshots on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots-firefox
path: cypress/screenshots

- name: Upload videos
uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos-firefox
path: cypress/videos

e2e-edge:
runs-on: windows-latest
name: E2E on Edge
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cypress run
uses: cypress-io/github-action@v4
with:
browser: edge
env:
CYPRESS_USERNAME: ${{ secrets.BCEID_USERNAME }}
CYPRESS_PASSWORD: ${{ secrets.BCEID_PASSWORD }}

- name: Upload screenshots on failure
uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots-edge
path: cypress/screenshots

- name: Upload videos
uses: actions/upload-artifact@v4
if: always()
with:
name: cypress-videos-edge
path: cypress/videos
tests:
name: Tests
needs: [deploys]
secrets: inherit
uses: ./.github/workflows/.tests.yml
with:
target: test

0 comments on commit 165f5f3

Please sign in to comment.