Checking failed TestRail report. #184
This file contains hidden or 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: Playwright Tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
CucumberTests-Job: | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm ci | |
- name: Install Playwright Chromium | |
run: npx playwright install chromium | |
- name: Cucumber-Tests | |
run: npm run cucumber:luma | |
- name: Install TestRail CLI | |
run: pip install trcli | |
- name: Update TestRail Result | |
run: trcli -y | |
-h https://testautomationportfolio.testrail.io | |
--project "magento-webapp" | |
-u capricorn.najeeb@gmail.com | |
-p Testrun123! | |
parse_junit | |
--title "Playwright Automated Test Run" | |
-f "./test-results/reports/junit-results.xml" | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: cucumber-report-html | |
path: test-results/reports/cucumber-report.html | |
retention-days: 30 | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: junit-report.xml | |
path: test-results/reports/junit-results.xml | |
retention-days: 30 |