-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
70 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Full Regression on demand tests | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 4 * * 1-5' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 40 | ||
name: Cypress Full Regression on demand tests | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
containers: [1, 2, 3, 4, 5] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: ./.github/workflows/cypress | ||
with: | ||
secrets: ${{ toJSON(secrets) }} | ||
spec: | | ||
cypress/e2e/happypath_2/*.cy.js | ||
cypress/e2e/regression/*.cy.js | ||
cypress/e2e/safe-apps/*.cy.js | ||
cypress/e2e/smoke/*.cy.js | ||
group: 'Full Regression on demand tests' | ||
tag: 'full_regression' | ||
|
||
- name: Python setup | ||
if: always() | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install junitparser | ||
if: always() | ||
run: | | ||
pip install junitparser | ||
- name: Merge JUnit reports for TestRail | ||
if: always() | ||
run: | | ||
junitparser merge --suite-name "Root Suite" --glob "reports/junit-*" "reports/junit-report.xml" | ||
- name: TestRail CLI upload results | ||
if: always() | ||
run: | | ||
pip install trcli | ||
if ! trcli -y \ | ||
-h https://gno.testrail.io/ \ | ||
--project "Safe- Web App" \ | ||
--username ${{ secrets.TESTRAIL_USERNAME }} \ | ||
--password ${{ secrets.TESTRAIL_PASSWORD }} \ | ||
parse_junit \ | ||
--title "Full Regression Automated Tests, branch: ${GITHUB_REF_NAME}" \ | ||
--run-description ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \ | ||
-f "reports/junit-report.xml"; then | ||
echo -e "\e[41;32mTestRail upload failed. Pipeline will continue, please check the upload process.\e[0m" | ||
fi |
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
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
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
This file was deleted.
Oops, something went wrong.
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
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