Build develop branch #1716
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
# This workflow builds the develop branch of Peass | |
name: Build develop branch | |
on: | |
push: | |
branches: [ develop ] | |
workflow_dispatch: | |
schedule: | |
- cron: "0 3 * * *" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] # no windows since kieker currently does not support windows execution | |
# os: [ubuntu-latest, macos-latest, windows-latest] # Building all systems only works for release versions of Peass | |
java: [ 11, 17 ] | |
fail-fast: false | |
runs-on: ${{ matrix.os }} | |
name: Java ${{ matrix.java }} ${{ matrix.os }} | |
steps: | |
- name: Set Git Property and output path | |
run: | | |
if [ "$RUNNER_OS" == "Windows" ]; then | |
git config --system core.longpaths true | |
echo %PATH% | |
where mvn | |
mvn -version | |
fi | |
shell: bash | |
- uses: actions/checkout@v3 | |
with: | |
ref: develop | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/[email protected] | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java }} | |
- name: Cache Maven packages | |
uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ matrix.java }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ matrix.java }}-m2 | |
# The following lines can be disabled if a release version of Peass is used (mostly before merge to main) | |
- name: Build Peass (Current dependent project version) | |
run: | | |
branch=develop | |
cd /home/runner/work/ && git clone -b $branch https://github.com/DaGeRe/peass.git && cd peass && echo "Branch: $branch" && git rev-parse HEAD && ./mvnw clean install -DskipTests -P buildStarter | |
- name: Build with Maven | |
run: ./mvnw -B install --file pom.xml -P develop | |
- name: Publish Test Report | |
if: ${{ always() }} | |
uses: scacap/action-surefire-report@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |