Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Fix merge conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWilde committed Jan 6, 2023
2 parents 41aaa87 + c86fa71 commit b68bafa
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 53 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/end_to_end_tests.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/tf-apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,40 @@ jobs:
TF_VAR_app_cypresstest_secret : ${{ secrets.CYPRESS_TEST_SECRET }}
TF_VAR_app_support_email: ${{ secrets.SUPPORT_EMAIL }}

run_tests:
needs: terraform-apply
if: ${{ github.event.inputs.environment != 'production' }}
permissions:
contents: read
packages: read

runs-on: ubuntu-latest
environment: ${{ github.event.inputs.environment == 'staging' && 'Staging' || 'Dev' }}
defaults:
run:
working-directory: end-to-end-tests

steps:
- name: checkout repository
uses: actions/checkout@v2

- name: setup node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'

- name: Npm install
run: npm install

- name: Run tests
run: npm run cypress:run -- --key ${{ secrets.CYPRESS_KEY }} --env url='${{ secrets.ENDPOINT }}',authorizationHeader='${{ secrets.AUTH_HEADER_CYPRESS }}'

- uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: end-to-end-tests/cypress/screenshots

create-tag:
needs: terraform-apply
runs-on: ubuntu-latest
Expand Down

0 comments on commit b68bafa

Please sign in to comment.