Skip to content

Bump actions/checkout from 2 to 4 #318

Bump actions/checkout from 2 to 4

Bump actions/checkout from 2 to 4 #318

Workflow file for this run

# 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@v4
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/