-
Notifications
You must be signed in to change notification settings - Fork 8
66 lines (56 loc) · 1.73 KB
/
test-copy.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
name: test-copy
on:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: PavanMudigonda/devops
path: devops
ref: gh-pages
token: ${{ secrets.GH_PAT }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: '18'
- name: List Files in workspace
if: always()
run: |
ls -R;
- name: Get Test Results history
uses: actions/checkout@v3
if: always()
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Create Playwright Test Results History
uses: PavanMudigonda/[email protected]
id: test-report
with:
playwright_results: test-results
gh_pages: gh-pages
playwright_history: playwright-history
keep_reports: 20
- name: Deploy report to Github Pages
if: always()
uses: peaceiris/actions-gh-pages@v3
env:
external_repository: PavanMudigonda/devops
PUBLISH_BRANCH: gh-pages
personal_token: ${{ secrets.GH_PAT }}
PUBLISH_DIR: playwright-history
- name: Post the link to the report
if: always()
uses: Sibz/github-status-action@v1
with:
authToken: ${{secrets.GITHUB_TOKEN}}
context: 'Test Results Link'
state: 'success'
sha: ${{ github.sha }}
target_url: https://PavanMudigonda.github.io/playwright-github-pages/${{ github.run_number }}