fix #59 #168
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
name: CI on all branches | |
# Controls when the action will run. | |
# Triggers the workflow on push or pull request events on all but the master branch | |
on: | |
push: | |
# Sequence of patterns matched against refs/heads | |
branches-ignore: [ master, v** ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# BUILD | |
build-communs: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
cache: 'maven' | |
# Step that does that actual cache save and restore | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
# Runs the Build with Maven | |
- name: Build Communs with Maven | |
run: mvn clean install -B --file communs/pom.xml | |
# BUILD | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
needs: build-communs | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
cache: 'maven' | |
# Step that does that actual cache save and restore | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
# Runs the Build with Maven | |
- name: Build with Maven | |
run: mvn clean install -B --file pom.xml |