build(deps): bump actions/setup-java from 3 to 4 #23
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: Build Eno WS | |
# Temporary workflow to build Eno-WS in the project (to be upgraded as a "create-snapshot" workflow later) | |
on: | |
pull_request: | |
types: | |
- labeled | |
env: | |
ENO_BRANCH: 'dev-pogues2ddi-suggester' | |
LUNATIC_MODEL_BRANCH: 'dev-suggester' | |
jobs: | |
build: | |
if: ${{ contains(github.event.pull_request.labels.*.name, 'ci-build') }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Checkout Eno repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
ref: ${{ env.ENO_BRANCH }} | |
repository: InseeFr/Eno | |
path: Eno | |
- name: Checkout Lunatic-Model repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
ref: ${{ env.LUNATIC_MODEL_BRANCH }} | |
repository: InseeFr/Lunatic-Model | |
path: Lunatic-Model | |
- name: Build Lunatic-Model with maven | |
working-directory: ./Lunatic-Model | |
run: mvn install --no-transfer-progress -Djar.finalName="lunatic-model" -B -V --file pom.xml | |
- name: Build Eno with maven | |
working-directory: ./Eno | |
run: mvn clean process-classes package install --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -Djar.finalName="eno-core" -B -V --file pom.xml | |
- name: Build Eno-WS with maven | |
run: mvn clean install --no-transfer-progress -DskipTests=true -B -V --file pom.xml | |
- name: Upload war | |
uses: actions/upload-artifact@v3 | |
with: | |
name: war | |
path: target/eno-ws.war | |
remove-deploy-label: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-ecosystem/action-remove-labels@v1 | |
with: | |
labels: ci-build |