Skip to content

Commit 438809f

Browse files
authored
Task 108801: Uncomment out Cypress tests (#416)
- cypress grep tag included so that the tests will run everything that has only stage tagged.
1 parent 65fe8c7 commit 438809f

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

.github/workflows/deploy_to_environment.yml

+25-25
Original file line numberDiff line numberDiff line change
@@ -152,28 +152,28 @@ jobs:
152152
TF_VAR_app_azuread_groupid: ${{ secrets.AZUREAD_GROUPID }}
153153
TF_VAR_app_cypresstest_secret : ${{ secrets.CYPRESS_TEST_SECRET }}
154154

155-
#cypress-tests:
156-
#needs: deploy-image
157-
#environment: staging
158-
#if: ${{ github.event.inputs.environment}} == staging
159-
#runs-on: ubuntu-latest
160-
#defaults:
161-
#run:
162-
# working-directory: ApplyToBecomeInternal/ApplyToBecomeCypressTests
163-
#steps:
164-
#- uses: actions/checkout@v2
165-
#- name: Setup node.js
166-
# uses: actions/setup-node@v1
167-
#with:
168-
# node-version: "16.x"
169-
#- name: Npm install
170-
# run: npm install
171-
#- name: Run cypress
172-
# run: npm run cy:run -- --env url='${{ secrets.ENDPOINT }}',authorizationHeader='${{ secrets.CYPRESS_TEST_SECRET }}'
173-
#env:
174-
# db: ${{ secrets.DB_CONNECTION_STRING }}
175-
#- uses: actions/upload-artifact@v1
176-
# if: failure()
177-
# with:
178-
# name: screenshots
179-
# path: ApplyToBecomeInternal/ApplyToBecomeCypressTests/cypress/screenshots
155+
cypress-tests:
156+
needs: deploy-image
157+
environment: staging
158+
if: ${{ github.event.inputs.environment}} == staging
159+
runs-on: ubuntu-latest
160+
defaults:
161+
run:
162+
working-directory: ApplyToBecomeInternal/ApplyToBecomeCypressTests
163+
steps:
164+
- uses: actions/checkout@v2
165+
- name: Setup node.js
166+
uses: actions/setup-node@v1
167+
with:
168+
node-version: "16.x"
169+
- name: Npm install
170+
run: npm install
171+
- name: Run cypress
172+
run: npm run cy:run -- --env grepTags=@stage,url='${{ secrets.ENDPOINT }}',authorizationHeader='${{ secrets.CYPRESS_TEST_SECRET }}'
173+
env:
174+
db: ${{ secrets.DB_CONNECTION_STRING }}
175+
- uses: actions/upload-artifact@v1
176+
if: failure()
177+
with:
178+
name: screenshots
179+
path: ApplyToBecomeInternal/ApplyToBecomeCypressTests/cypress/screenshots

0 commit comments

Comments
 (0)