Bump actions/upload-artifact from 2 to 4 #316
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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@v4 | |
if: always() | |
with: | |
name: ${{ matrix.name }}-testresults | |
path: | | |
**/TEST-*.xml | |
target/site/ |