-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (76 loc) · 2.36 KB
/
playwright.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: playwright-allure-report
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
name: Run end-to-end tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
# - name: Configure Git
# run: |
# git config user.name "Radomyr Horban"
# git config user.email "[email protected]"
#!new codee
allure:
name: Generate Allure Report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# ! create a new branch first
- name: Create and push `allure-report-gh` branch
run: |
git checkout -b allure-report
git add allure-results
git commit -m "Add Allure report"
git push origin allure-report
- name: Get Allure history
uses: actions/checkout@v3
if: always()
continue-on-error: true
with:
ref: allure-report-gh
path: allure-report-gh
- name: Allure Report action from marketplace
uses: simple-elf/allure-report-action@master
if: always()
id: allure-report
with:
allure_results: allure-results
gh_pages: allure-report-gh
allure_report: allure-report
#! do I have such a folder?
allure_history: allure-history
- name: Deploy report to GitHub Pages
if: always()
uses: peaceiris/actions-gh-pages@v3
with:
PERSONAL_TOKEN: ${{secrets.GITHUB_TOKEN}}
PUBLISH_BRANCH: allure-report-gh
PUBLISH_DIR: allure-report
# - name: Copy Allure report
# run: |
# mkdir -p allure-results
# cp -r allure-report/* allure-results/
#! Add a link
# - name: Post the link to the report
# if: always()
# uses: Sibz/github-status-action@v1
# with:
# authToken: ${{secrets.GITHUB_TOKEN}}
# context: 'Test report'
# state: 'success'
# sha: ${{ github.event.pull_request.head.sha || github.sha}}