Merge pull request #426 from com-pas/feat/add-voltage-level-service #1451
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
# SPDX-FileCopyrightText: 2021 Alliander N.V. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Build Project | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- 'main' | |
- 'develop' | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
- name: Create custom Maven Settings.xml | |
uses: whelk-io/maven-settings-xml-action@v21 | |
with: | |
output_file: custom_maven_settings.xml | |
servers: '[{ "id": "github-packages-compas", "username": "OWNER", "password": "${{ secrets.GITHUB_TOKEN }}" }]' | |
- name: Build with Maven | |
run: mvn -s custom_maven_settings.xml -B clean verify |