-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (41 loc) · 1.19 KB
/
Copy pathmain-workflow.yml
File metadata and controls
41 lines (41 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Main workflow
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Prod job
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install dependencies
run: |
npm ci
pip install testit-importer-allure
- name: TestIT configiration
run: |
testit --url ${{ secrets.TMS_URL }}
testit --privatetoken ${{ secrets.TMS_PRIVATE_TOKEN }}
testit --projectid ${{ secrets.TMS_PROJECT_ID }}
testit --configurationid ${{ secrets.TMS_CONFIGURATION_ID }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test main-page.spec.ts
- name: Generate allure report
run: npm run allure:generate
- name: Import allure report in TestIT
run: testit --resultsdir allure-results --testrunname allure-reports
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: allure-report
path: allure-report/
retention-days: 30