Skip to content

Commit

Permalink
[NO-ISSUE] refactoring: move e2e test to prod (#1798)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafael-qazion authored Oct 9, 2024
1 parent f07e84e commit ca5a15b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 54 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Local Stage E2E Tests
name: Local Prod E2E Tests

on:
schedule:
- cron: '0 9,15,21 * * 1-5' # Runs at 6:00, 12:00, and 18:00 in UTC-3
workflow_dispatch:

jobs:
run-local-stage-e2e-tests:
name: Run Local Stage E2E Tests
run-local-prod-e2e-tests:
name: Run Local Prod E2E Tests
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -25,15 +25,17 @@ jobs:
- name: Run Cypress E2E Tests
uses: cypress-io/github-action@v6
env:
DEV_CYPRESS_EMAIL: ${{ secrets.DEV_CYPRESS_EMAIL }}
DEV_CYPRESS_PASSWORD: ${{ secrets.DEV_CYPRESS_PASSWORD }}
PROD_CYPRESS_EMAIL: ${{ secrets.PROD_CYPRESS_EMAIL }}
PROD_CYPRESS_PASSWORD: ${{ secrets.PROD_CYPRESS_PASSWORD }}
VITE_ENVIRONMENT: "production"
with:
build: yarn build
start: yarn dev --logLevel=warn
browser: chrome
wait-on: 'http://localhost:5173/'
wait-on-timeout: 120
env: grepTags=-@xfail
config-file: cypress.config.prod.js
env: environment=prod,grepTags=@dev+-@xfail+-@dont_run_prod

- name: Check E2E Test Coverage
if: ${{ always() }}
Expand Down Expand Up @@ -74,7 +76,7 @@ jobs:
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
job_name: Run Local Stage E2E Tests
job_name: Run Local Prod E2E Tests
fields: job,took,workflow
env:
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }}
47 changes: 0 additions & 47 deletions .github/workflows/stage-e2e-tests.yml

This file was deleted.

0 comments on commit ca5a15b

Please sign in to comment.