Skip to content

Pull request #110: Refactoring updates #90

Pull request #110: Refactoring updates

Pull request #110: Refactoring updates #90

Workflow file for this run

name: build
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: main
- uses: actions/checkout@v4
with:
repository: ISAITB/itb-commons
path: commons
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-${{ secrets.CACHE_VERSION }}|
- name: Generate Maven settings
uses: whelk-io/maven-settings-xml-action@v22
with:
repositories: >
[
{
"id": "itbRepoRead",
"name": "itbRepoRead",
"url": "${{ secrets.ITB_MVN_REPO_URL }}",
"releases": {
"enabled": "true"
},
"snapshots": {
"enabled": "true"
}
}
]
servers: >
[
{
"id": "itbRepoRead",
"username": "${{ secrets.ITB_MVN_REPO_USER }}",
"password": "${{ secrets.ITB_MVN_REPO_PASS }}"
}
]
profiles: >
[
{
"id": "itbRepoRead",
"properties": {
"itbRepoReadUrl": "${{ secrets.ITB_MVN_REPO_URL }}"
}
}
]
active_profiles: >
[
"itbRepoRead", "github"
]
- name: Install commons
run: mvn -B install -DskipTests=true
working-directory: commons
- name: Build with Maven
run: mvn -B package --file pom.xml
working-directory: main