Skip to content

Ensure that the Maven plugin configuration keeps working #58

Ensure that the Maven plugin configuration keeps working

Ensure that the Maven plugin configuration keeps working #58

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build:
- name: "Java 17 (LTS) without JSpecify"
java: 17
profiles: "!jspecify"
runGradle: true
- name: "Java 25 (LTS) with JSpecify"
java: 25
profiles: ""
runGradle: true
- name: "Java 26 (latest) with JSpecify"
java: 26
profiles: ""
runGradle: false
name: ${{ matrix.build.name }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.build.java }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.build.java }}
cache: maven
- name: Maven build
run: |
mvn --batch-mode \
${{ matrix.build.profiles && format('-P {0}', matrix.build.profiles) }} \
clean install spotless:check
- name: Gradle build
if: matrix.build.runGradle == true
run: cd typescript-generator-gradle-plugin && ./gradlew build