1- name : Playwright Tests
1+ name : Main workflow
22on :
33 workflow_dispatch :
44 push :
77 branches : [ main ]
88jobs :
99 test :
10- name : Playwright jobs
10+ name : Prod job
1111 timeout-minutes : 60
1212 runs-on : ubuntu-latest
1313 steps :
@@ -16,22 +16,23 @@ jobs:
1616 with :
1717 node-version : lts/*
1818 - name : Install dependencies
19- run : npm ci
19+ run : |
20+ npm ci
21+ pip install testit-importer-allure
22+ - name : TestIT configiration
23+ run : |
24+ testit --url ${{ secrets.TMS_URL }}
25+ testit --privatetoken ${{ secrets.TMS_PRIVATE_TOKEN }}
26+ testit --projectid ${{ secrets.TMS_PROJECT_ID }}
27+ testit --configurationid ${{ secrets.TMS_CONFIGURATION_ID }}
2028 - name : Install Playwright Browsers
2129 run : npx playwright install --with-deps
22- - name : Install allure report
23- run : npm install -D allure-playwright
2430 - name : Run Playwright tests
25- env :
26- TMS_PRIVATE_TOKEN : ${{ secrets.TMS_PRIVATE_TOKEN }}
27- TMS_URL : ${{ secrets.TMS_URL }}
28- TMS_PROJECT_ID : ${{ secrets.TMS_PROJECT_ID }}
29- TMS_CONFIGURATION_ID : ${{ secrets.TMS_CONFIGURATION_ID }}
30- TMS_TEST_RUN_NAME : ${{ secrets.TMS_TEST_RUN_NAME }}
31- TMS_ADAPTER_MODE : 2
32- run : npx playwright test fast.spec.ts
33- - name : Allure report
31+ run : npx playwright test main-page.spec.ts
32+ - name : Generate allure report
3433 run : npm run allure:generate
34+ - name : Import allure report in TestIT
35+ run : testit --resultsdir allure-results --testrunname allure-reports
3536 - uses : actions/upload-artifact@v4
3637 if : ${{ !cancelled() }}
3738 with :
0 commit comments