Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Nov 12, 2023
1 parent 36e229e commit 3b2fd85
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,43 @@
name: Verify

on: [workflow_call]
inputs:
jdk-matrix:
description: jdk matrix as json array
required: false
default: '[ 8, 11, 17, 21 ]'

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Stop old builds
if: github.ref != 'refs/heads/master'
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
on:
push:
branches:
- master
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
needs: setup
name: Build and Test on JDK ${{ matrix.java }}
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 17 ]
runs-on: ubuntu-latest
java: ${{ fromJSON( inputs.jdk-matrix ) }}
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
submodules: false
show-progress: false

- 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
run: ./mvnw -B verify -P run-its

0 comments on commit 3b2fd85

Please sign in to comment.