File tree 1 file changed +29
-2
lines changed
1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Run tests
1
+ name : Run tests and publish the report
2
2
on : [push]
3
+
4
+ permissions : write-all
5
+
3
6
jobs :
4
7
test :
5
8
runs-on : ubuntu-latest
13
16
java-version : 17
14
17
15
18
- 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
You can’t perform that action at this time.
0 commit comments