-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 1.37 KB
/
maven.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
name: Run tests
env:
ALLURE_VERSION: "2.10.0"
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types: # This configuration does not affect the page_build event above
- created
repository_dispatch:
types:
- webhook
jobs:
build:
name: Tests on JDK
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: false
matrix:
java: [ 11, 13, 14, 15, 17, 18 ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
java-package: jdk
cache: 'maven'
- name: Build with Maven
id: build
run: mvn clean install -DskipTests -ntp
- name: Tests
id: functests
timeout-minutes: 15
continue-on-error: true
run: mvn test -ntp --fail-at-end
- name: Generate Allure report
uses: simple-elf/allure-report-action@master
with:
allure_results: target/allure-results
allure_report: target/allure-report
allure_history: allure-history
- name: Check tests are passed
if: ${{ steps.functests.outcome != 'success' }}
run: |
echo Tests result: ${{ steps.functests.outcome }}
exit 1