Skip to content

fix(piranhas26): use umlauts in win reason (#432) #595

fix(piranhas26): use umlauts in win reason (#432)

fix(piranhas26): use umlauts in win reason (#432) #595

Workflow file for this run

on: [push, pull_request, create]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
os: [ubuntu-latest] #, windows-latest, macos-latest]
jdk: [8]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}
cache: 'gradle'
#- name: Cache Gradle packages
# uses: actions/cache@v4
# with:
# path: [~/.gradle/caches, ~/.gradle/wrapper]
# key: ${{ matrix.os }}-gradle-jdk${{ matrix.jdk }}-${{ hashFiles('**/*.gradle.kts') }}
# restore-keys: ${{ matrix.os }}-gradle-jdk${{ matrix.jdk }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: List Files
run: find -maxdepth 1 -type d
- name: Execute tests
run: ./gradlew clean check || ( exitcode=$?; find build/tests -name '*.log' -type f | while read f; do echo -e "\033[4m$f\033[0m"; cat $f; done && exit $exitcode; )
- name: Bundle Artifacts
run: ./gradlew bundle
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: software-challenge-backend-${{ github.sha }}
path: |
build/bundle/*.zip
build/bundle/*.jar
release:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4 # https://github.com/actions/download-artifact
with:
name: software-challenge-backend-${{ github.sha }}
path: artifacts
- name: Release ${{ github.ref }}
uses: softprops/action-gh-release@v1 # https://github.com/softprops/action-gh-release
with:
files: artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}