Merge pull request #32 from UMEssen/dependabot/maven/org.springframew… #117
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 and test | |
on: | |
push | |
env: | |
MAVEN_USERNAME: ${{ secrets.USER }} | |
MAVEN_PASSWORD: ${{ secrets.TOKEN }} | |
jobs: | |
check-code-style: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 23 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '23' | |
distribution: 'temurin' | |
cache: 'maven' | |
server-id: github-ume # Value of the distributionManagement/repository/id field of the pom.xml | |
settings-path: $GITHUB_WORKSPACE/.github/ # location for the settings.xml file | |
- name: Check code style | |
run: | |
mvn spotless:check --batch-mode --no-transfer-progress --file $GITHUB_WORKSPACE/pom.xml -s $GITHUB_WORKSPACE/.github/settings.xml | |
build-and-test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 23 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '23' | |
distribution: 'temurin' | |
cache: 'maven' | |
server-id: github-ume # Value of the distributionManagement/repository/id field of the pom.xml | |
settings-path: $GITHUB_WORKSPACE/.github/ # location for the settings.xml file | |
- uses: gacts/install-hurl@v1 | |
- name: Build jar | |
run: | |
mvn -U clean package --batch-mode --no-transfer-progress --file $GITHUB_WORKSPACE/pom.xml -s $GITHUB_WORKSPACE/.github/settings.xml | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.USER }} | |
password: ${{ secrets.TOKEN }} | |
- name: Integrationtests | |
run: cd integrationtests && ./start-integrationtests.sh |