-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from bcgov/cypress
cypress workflow updated
- Loading branch information
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
name: Daily Regression | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 11 * * 1-5" | ||
|
||
jobs: | ||
Regression: | ||
runs-on: ubuntu-latest | ||
# Cypress Docker image with Chrome v91 | ||
# and Firefox v89 pre-installed | ||
container: cypress/browsers:node-18.16.0-chrome-112.0.5615.121-1-ff-112.0.1-edge-112.0.1722.48-1 | ||
environment: dev | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
name: Checkout | ||
- uses: cypress-io/github-action@v5 | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
|
||
- name: Set Environment Variable | ||
run: echo "CYPRESS_BASE_URL_SECRET=$CYPRESS_BASE_URL_SECRET" >> $GITHUB_ENV | ||
|
||
- name: Cypress Tests | ||
uses: cypress-io/github-action@v5 | ||
with: | ||
browser: chrome | ||
working-directory: ./tests-e2e | ||
env: | ||
CYPRESS_BASE_URL_SECRET: ${{ secrets.CYPRESS_BASE_URL_SECRET } |