-
Notifications
You must be signed in to change notification settings - Fork 119
37 lines (35 loc) · 1.02 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: "JDK ${{ matrix.java }}"
strategy:
matrix:
java: [ 8, 11, 17, 21 ]
runs-on: ubuntu-latest
steps:
# Cancel any previous runs for the same branch that are still running.
- name: 'Cancel previous runs'
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa
with:
access_token: ${{ github.token }}
- name: 'Check out repository'
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
cache: 'maven'
- name: 'Install'
shell: bash
run: mvn -B -U install clean --fail-never --quiet -DskipTests=true -Dinvoker.skip=true
- name: 'Test'
shell: bash
run: mvn -B verify