Skip to content

MPT-15326 Daily E2E cronjob #1

MPT-15326 Daily E2E cronjob

MPT-15326 Daily E2E cronjob #1

Workflow file for this run

name: daily-e2e.yml

Check failure on line 1 in .github/workflows/cron-main-e2e.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cron-main-e2e.yml

Invalid workflow file

(Line: 7, Col: 3): A sequence was not expected
on:
schedule:
- cron: '0 8 * * *'
jobs:
- name: "Checkout"
uses: actions/checkout@v4
with:
ref: main
- name: "Build test containers"
run: docker compose build app_test
- name: "Create environment file"
run: env | grep -E '^MPT_' > .env
env:
RP_ENDPOINT: ${{ secrets.RP_ENDPOINT }}
RP_API_KEY: ${{ secrets.RP_API_KEY }}
MPT_API_BASE_URL: ${{ secrets.MPT_API_BASE_URL }}
MPT_API_TOKEN: ${{ secrets.MPT_API_TOKEN }}
MPT_API_TOKEN_CLIENT: ${{ secrets.MPT_API_TOKEN_CLIENT }}
MPT_API_TOKEN_OPERATIONS: ${{ secrets.MPT_API_TOKEN_OPERATIONS }}
MPT_API_TOKEN_VENDOR: ${{ secrets.MPT_API_TOKEN_VENDOR }}
- name: "Run validation & test"
run: docker compose run --service-ports app_test
- name: "Run E2E test"
run: docker compose run --service-ports app_test bash -c "pytest -v -p no:randomly --no-cov --reportportal --rp-launch=$RP_LAUNCH --rp-api-key=$RP_API_KEY --rp-endpoint=$RP_ENDPOINT --junitxml=e2e-report.xml tests/e2e"
env:
RP_LAUNCH: github-e2e-cron-main
RP_ENDPOINT: ${{ secrets.RP_ENDPOINT }}
RP_API_KEY: ${{ secrets.RP_API_KEY }}
- name: "Run SonarCloud Scan"
uses: SonarSource/sonarqube-scan-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: "Stop containers"
if: always()
run: docker compose down