E2E regression tests #84
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
name: E2E regression tests | |
on: | |
schedule: | |
- cron: '0 0 * * *' # This cron schedule runs the workflow every day at midnight UTC | |
workflow_dispatch: | |
jobs: | |
e2e-robot-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r tests/robot_framework/requirements.txt --use-deprecated=legacy-resolver | |
rfbrowser init | |
- name: Execute E2E tests (Robot Framework) | |
env: | |
OTP_SECRET_WOO: ${{ secrets.OTP_SECRET_WOO }} | |
USERNAME_WOO_STAGING: ${{ secrets.USERNAME_WOO_STAGING }} | |
PASSWORD_WOO_STAGING: ${{ secrets.PASSWORD_WOO_STAGING }} | |
USERNAME_WOO_TEST: ${{ secrets.USERNAME_WOO_TEST }} | |
PASSWORD_WOO_TEST: ${{ secrets.PASSWORD_WOO_TEST }} | |
EMAIL_WOO_TEST_BALIE: ${{ secrets.EMAIL_WOO_TEST_BALIE }} | |
PASSWORD_WOO_TEST_BALIE: ${{ secrets.PASSWORD_WOO_TEST_BALIE }} | |
SECRET_WOO_TEST_BALIE: ${{ secrets.SECRET_WOO_TEST_BALIE }} | |
run: | | |
python -m robot -d tests/robot_framework/results -x outputxunit.xml -i E2E -e LOGS -v headless:true tests/robot_framework | |
- name: Upload test results | |
uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: reports | |
path: tests/robot_framework/results | |
# - name: echo environment | |
# run: echo "Testing on env: ${{ github.event.inputs.env }}" |