name: ci

on: [push, pull_request]

jobs:
  setup:
    runs-on: ubuntu-latest
    steps:
      - name: Stop old builds
        if: github.ref != 'refs/heads/master'
        uses: styfle/cancel-workflow-action@0.11.0
        with:
          access_token: ${{ github.token }}

  build:
    needs: setup
    strategy:
      matrix:
        java: [ 11, 17 ]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: "Set up JDK ${{ matrix.java }}"
        uses: actions/setup-java@v3
        with:
          java-version: ${{ matrix.java }}
          distribution: 'temurin'
      - name: Build & Test
        run: ./mvnw -B verify

name: Verify

on:
  push:
  pull_request:

jobs:
  build:
    name: Verify
    uses: takari/takari-gh-actions/.github/workflows/ci.yml@v1


Switch to Shared GH Actions
Switch to Shared GH Actions
