Files
spring-statemachine/.github/workflows/ci-boot.yml
Eric Haag 33d68e7878 Update workflows with Gradle Enterprise credentials
Only workflows that do not build PRs have been configured with
credentials.
2023-10-09 10:12:31 +01:00

46 lines
1.3 KiB
YAML

name: CI Boot
on:
workflow_dispatch:
jobs:
# build and test, then upload logs if failure
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
java: [ 17 ]
boot: [ 3.1.0, 3.1.3 ]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Build boot ${{ matrix.boot }} java ${{ matrix.java }}
run: ./gradlew clean build -PspringBootVersion=${{ matrix.boot }}
env:
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
- name: Tar Build Logs
if: ${{ failure() }}
run: |
mkdir -p build
tar \
-zc \
--ignore-failed-read \
--file build/buildlogs.tar.gz \
*/build/reports \
*/*/build/reports
- name: Upload Build Logs
if: ${{ failure() }}
uses: actions/upload-artifact@v2
with:
name: buildlogs-${{ matrix.boot }}-${{ matrix.java }}
path: build/buildlogs.tar.gz