-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.13 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
# Quickstart for GitHub Actions
# https://docs.github.com/en/actions/quickstart
name: CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
test:
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#choosing-github-hosted-runners
runs-on: ${{ matrix.os }}
timeout-minutes: 5
name: Test on JDK ${{ matrix.java }} OS ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
java: [ 8, 11, 17 ]
fail-fast: false
max-parallel: 64
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: zulu
java-version: ${{ matrix.java }}
cache: maven
- run: ./mvnw -V --no-transfer-progress clean package
if: matrix.java < 17
- run: ./mvnw -V --no-transfer-progress clean package spotbugs:check git-commit-id:validateRevision -DperformRelease
if: matrix.java >= 17
# https://github.com/marketplace/actions/codecov
- uses: codecov/codecov-action@v3
with:
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}