Skip to content

Commit 05044dd

Browse files
committed
Add integration with Allure Report
1 parent bcc54df commit 05044dd

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.github/workflows/test.yml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
name: Run tests
1+
name: Run tests and publish the report
22
on: [push]
3+
4+
permissions: write-all
5+
36
jobs:
47
test:
58
runs-on: ubuntu-latest
@@ -13,4 +16,28 @@ jobs:
1316
java-version: 17
1417

1518
- name: Run tests
16-
run: SELENIDE_URL="${{ vars.SELENIDE_URL }}" ./gradlew clean test
19+
run: SELENIDE_URL="${{ vars.SELENIDE_URL }}" ./gradlew clean test
20+
21+
- name: Load test report history
22+
uses: actions/checkout@v4
23+
if: always()
24+
continue-on-error: true
25+
with:
26+
ref: gh-pages
27+
path: gh-pages
28+
29+
- name: Build test report
30+
uses: simple-elf/allure-report-action@v1.10
31+
if: always()
32+
with:
33+
gh_pages: gh-pages
34+
allure_history: allure-history
35+
allure_results: build/allure-results
36+
37+
- name: Publish test report
38+
uses: peaceiris/actions-gh-pages@v4
39+
if: always()
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_branch: gh-pages
43+
publish_dir: allure-history

0 commit comments

Comments
 (0)