Skip to content

Multiple changes :

Multiple changes : #5

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Set up JDK 11
uses: actions/setup-java@v5
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build and test with Maven
run: mvn -B verify --file pom.xml
- name: Upload test results
if: always()
uses: actions/upload-artifact@v7
with:
name: test-results-${{ matrix.os }}
path: target/surefire-reports/
if-no-files-found: ignore
- name: Upload JAR artifact
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v7
with:
name: joularcode-java
path: target/*.jar
if-no-files-found: warn