Skip to content

Commit

Permalink
BC-4968 some more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirKhan committed Sep 6, 2023
1 parent 43aeb24 commit b350db2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 52 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,56 +74,6 @@ jobs:
chmod +x ${{ github.workspace }}/e2e-system-tests/scripts/set-env-vars.sh
${{ github.workspace }}/e2e-system-tests/scripts/set-env-vars.sh
# - name: Check Urls
# run: |
# if [[ $CYPRESS_BRB =~ \b(?:staging|schulportal)\b && $CYPRESS_NBC =~ \b(?:staging|schulportal)\b && $CYPRESS_DEFAULT =~ \b(?:staging|schulportal)\b ]]; then
# echo "Loading staging environment variables"
# echo "CYPRESS_TEACHER_1_EMAIL=op://cy-dev-brb/cypress/CYPRESS_TEACHER_1_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_1_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_TEACHER_1_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_2_EMAIL=op://cy-dev-brb/cypress/CYPRESS_TEACHER_2_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_2_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_TEACHER_2_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_1_EMAIL=op://cy-dev-brb/cypress/CYPRESS_STUDENT_1_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_1_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_1_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_2_EMAIL=op://cy-dev-brb/cypress/CYPRESS_STUDENT_2_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_2_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_2_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_ADMIN_1_EMAIL=op://cy-dev-brb/cypress/CYPRESS_ADMIN_1_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_ADMIN_1_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_ADMIN_1_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_EXPERT_1_EMAIL=op://cy-dev-brb/cypress/CYPRESS_EXPERT_1_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_EXPERT_1_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_EXPERT_1_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_EXTERN=op://cy-dev-brb/cypress/CYPRESS_STUDENT_EXTERN" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_EXTERN_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_EXTERN_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_PASSWORD_CHANGE_EMAIL=op://cy-dev-brb/cypress/CYPRESS_STUDENT_PASSWORD_CHANGE_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_PASSWORD_CHANGE_OLD_PWD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_PASSWORD_CHANGE_OLD_PWD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_PASSWORD_CHANGE_NEW_PWD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_PASSWORD_CHANGE_NEW_PWD" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_1_FIRST_NAME=op://cy-dev-brb/cypress/CYPRESS_TEACHER_1_FIRST_NAME" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_1_LAST_NAME=op://cy-dev-brb/cypress/CYPRESS_TEACHER_1_LAST_NAME" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_2_FIRST_NAME=op://cy-dev-brb/cypress/CYPRESS_TEACHER_2_FIRST_NAME" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_2_LAST_NAME=op://cy-dev-brb/cypress/CYPRESS_TEACHER_2_LAST_NAME" >> $GITHUB_ENV
# else
# echo "Loading dev environment variables"
# echo "CYPRESS_TEACHER_1_EMAIL=op://cy-dev-brb/cypress/CYPRESS_TEACHER_1_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_1_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_TEACHER_1_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_2_EMAIL=op://cy-dev-brb/cypress/CYPRESS_TEACHER_2_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_2_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_TEACHER_2_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_1_EMAIL=op://cy-dev-brb/cypress/CYPRESS_STUDENT_1_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_1_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_1_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_2_EMAIL=op://cy-dev-brb/cypress/CYPRESS_STUDENT_2_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_2_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_2_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_ADMIN_1_EMAIL=op://cy-dev-brb/cypress/CYPRESS_ADMIN_1_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_ADMIN_1_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_ADMIN_1_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_EXPERT_1_EMAIL=op://cy-dev-brb/cypress/CYPRESS_EXPERT_1_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_EXPERT_1_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_EXPERT_1_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_EXTERN=op://cy-dev-brb/cypress/CYPRESS_STUDENT_EXTERN" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_EXTERN_PASSWORD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_EXTERN_PASSWORD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_PASSWORD_CHANGE_EMAIL=op://cy-dev-brb/cypress/CYPRESS_STUDENT_PASSWORD_CHANGE_EMAIL" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_PASSWORD_CHANGE_OLD_PWD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_PASSWORD_CHANGE_OLD_PWD" >> $GITHUB_ENV
# echo "CYPRESS_STUDENT_PASSWORD_CHANGE_NEW_PWD=op://cy-dev-brb/cypress/CYPRESS_STUDENT_PASSWORD_CHANGE_NEW_PWD" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_1_FIRST_NAME=op://cy-dev-brb/cypress/CYPRESS_TEACHER_1_FIRST_NAME" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_1_LAST_NAME=op://cy-dev-brb/cypress/CYPRESS_TEACHER_1_LAST_NAME" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_2_FIRST_NAME=op://cy-dev-brb/cypress/CYPRESS_TEACHER_2_FIRST_NAME" >> $GITHUB_ENV
# echo "CYPRESS_TEACHER_2_LAST_NAME=op://cy-dev-brb/cypress/CYPRESS_TEACHER_2_LAST_NAME" >> $GITHUB_ENV
# fi

- name: Load secret
id: op-load-secret
uses: 1password/load-secrets-action@v1
Expand Down
4 changes: 2 additions & 2 deletions scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ case "$command" in
xvfb-run cypress run --browser chrome -e tags='@stable_test',environmentName=$env
;;
"tag:stable:pr")
cypress run --browser chrome -e tags='@pr and @stable_test',environmentName=$env
xvfb-run cypress run --browser chrome -e tags='@pr and @stable_test',environmentName=$env
;;
"tag:stable:release")
cypress run --browser chrome -e tags='@release and @stable_test',environmentName=$env
xvfb-run cypress run --browser chrome -e tags='@release and @stable_test',environmentName=$env
;;
"tag:only")
cypress run --browser chrome -e tags='@only',environmentName=$env
Expand Down

0 comments on commit b350db2

Please sign in to comment.