Merge pull request #48 from najeeb1023/checkoutFlow_WIP #247
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: 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: Install TestRail CLI | |
run: pip install trcli | |
- name: Cucumber-Tests | |
continue-on-error: true | |
run: npm run cucumber:luma | |
- name: Update TestRail Result | |
continue-on-error: true | |
run: trcli -y | |
-h https://testautomationportfolio.testrail.io | |
--project "magento-webapp" | |
-u capricorn.najeeb@gmail.com | |
-p Testrun123! | |
parse_junit | |
--title "magento-webapp_regression" | |
-f "./test-results/reports/junit-report.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-report.xml | |
retention-days: 30 | |