Skip to content

Commit

Permalink
updating the working directory for sed commands
Browse files Browse the repository at this point in the history
  • Loading branch information
estohlmann committed Sep 3, 2024
1 parent 1127144 commit 2a05178
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/code.end-to-end-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ jobs:
working-directory: ./cypress
run: |
npm install
- name: Update Config file to run as Non-Admin
run: |
sed -i -e "s/base_url: \'.*\'/base_url: \'${{vars.BASE_URL}}\'/g" cypress/cypress.config.ts
sed -i -e "s/username: \'.*\'/username: \'${{vars.NON_ADMIN_USER}}\'/g" cypress/cypress.config.ts
sed -i -e "s/password: \'.*\'/password: \'${{secrets.NON_ADMIN_PASS}}\'/g" cypress/cypress.config.ts
sed -i -e "s/account_id: \'.*\'/account_id: \'${{vars.AWS_ACCOUNT}}\'/g" cypress/cypress.config.ts
- name: Run E2E tests
- name: Update Config file and Run Tests
working-directory: ./cypress
run: |
sed -i -e "s/base_url: \'.*\'/base_url: \'${{vars.BASE_URL}}\'/g" cypress.config.ts
sed -i -e "s/username: \'.*\'/username: \'${{vars.NON_ADMIN_USER}}\'/g" cypress.config.ts
sed -i -e "s/password: \'.*\'/password: \'${{secrets.NON_ADMIN_PASS}}\'/g" cypress.config.ts
sed -i -e "s/account_id: \'.*\'/account_id: \'${{vars.AWS_ACCOUNT}}\'/g" cypress.config.ts
npm run cypress:run
send_final_slack_notification:
name: Send E2E Finished Notification
Expand Down

0 comments on commit 2a05178

Please sign in to comment.