name: Smoke Tests (JDK11)

on: [push, pull_request]

jobs:
  others:

    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, macOS-latest]
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK 11
        uses: actions/setup-java@v1
        with:
          distribution: 'temurin'
          java-version: '11.0.12+7'
      - name: Build with Maven
        run: mvn -B clean install -P smoke-tests --file pom.xml -fae
  windows:
    runs-on: windows-latest
    steps:
      - name: Configure Git to support long paths
        run: git config --global core.longpaths true
      - name: Verify Git configuration for long paths
        run: git config --global core.longpaths
      - uses: actions/checkout@v2
      - name: Set up JDK 11
        uses: actions/setup-java@v3
        with:
          distribution: 'temurin'
          java-version: '11.0.12+7'
      - name: Build with Maven
        run: mvn -B clean install -P smoke-tests --file pom.xml -fae

