-
-
Notifications
You must be signed in to change notification settings - Fork 716
69 lines (67 loc) · 1.9 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
name: Build
on:
pull_request:
branches:
- '*'
push:
branches:
- 'main'
- 'hotfix-*'
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: [ '17' ]
steps:
- uses: actions/[email protected]
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew build buildDeb buildRpm
- name: Upload allure-commandline artifact
uses: actions/upload-artifact@v4
with:
name: allure-commandline
path: allure-commandline/build/install/allure-commandline
- name: Upload allure-results artifact
uses: actions/upload-artifact@v4
with:
name: allure-results
path: allure-generator/test-data/demo2
testcmd:
name: "Test Allure Commandline"
runs-on: ubuntu-latest
needs: build
strategy:
fail-fast: false
matrix:
java-version: [ '8', '11', '17', '20' ]
steps:
- name: Set up JRE ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-package: 'jre'
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Download allure-commandline artifact
uses: actions/download-artifact@v4
with:
name: allure-commandline
- name: Download allure-results artifact
uses: actions/download-artifact@v4
with:
name: allure-results
path: allure-results
- name: Add execute permissions to script
run: chmod +x ./bin/allure
- name: Run version command
run: ./bin/allure --version
- name: Generate demo report
run: ./bin/allure generate allure-results