-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (67 loc) · 2.11 KB
/
build.yaml
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
name: Build master branch
on:
push:
branches-ignore:
- 'gh-pages'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '8'
server-id: krista-maven-public
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build and Check
run: mvn --no-transfer-progress -Dstyle.color=always --fail-at-end verify
env:
MAVEN_USERNAME: ${{ secrets.KRISTA_REPO_USER }}
MAVEN_PASSWORD: ${{ secrets.KRISTA_REPO_PASSWD }}
MAVEN_OPTS: -Djansi.force=true
- name: Upload report files
uses: actions/upload-artifact@v2
if: always()
with:
name: allure-results
path: ./target/allure-results
publish-report:
runs-on: ubuntu-latest
needs: [build]
if: always()
steps:
- name: Download report files
uses: actions/download-artifact@v2
with:
name: allure-results
path: ./target/allure-results
# Thanks to @simple1elf (Telegram) for the working template
# https://github.com/simple-elf/github-allure-history
- name: Get Allure history
uses: actions/[email protected]
continue-on-error: true
with:
ref: gh-pages
path: gh-pages
- name: Allure Report action
uses: simple-elf/allure-report-action@master
#uses: ./allure-report-action
#id: allure-report
with:
allure_results: 'target/allure-results'
allure_history: allure-history
- name: Deploy report to Github Pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./allure-history
publish_branch: gh-pages