-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (50 loc) · 1.51 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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- { name: "ssh-default" , dockerVersion: "5:23.0.6-1~ubuntu.22.04~jammy"}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Configure Docker
env:
DOCKER_VERSION: ${{matrix.dockerVersion}}
DOCKER_HOST: ${{matrix.dockerHost}}
run: .ci/setup_docker.sh
- name: Create ssh config
run: .ci/setup_ssh_config.sh
- name: Build with Maven
env:
DOCKER_HOST: "ssh://junit-host"
run: mvn -B verify --file pom.xml
- name: Create test reports
if: always()
continue-on-error: true
run: mvn -B surefire-report:failsafe-report-only
- uses: actions/upload-artifact@v2
if: always()
with:
name: ${{ matrix.name }}-testresults
path: |
**/TEST-*.xml
target/site/