-
Notifications
You must be signed in to change notification settings - Fork 71
43 lines (41 loc) · 1.08 KB
/
pull_requests.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
38
39
40
41
42
43
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 8, 11, 17 ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.version }}
cache: "maven"
distribution: "temurin"
- name: Build, test, coverage
run: ./mvnw clean test jacoco:report
- name: Coveralls parallel
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
allow-empty: true
flag-name: run-jvm-${{ join(matrix.*, '-') }}
parallel: true
base-path: src/main/java
finish:
needs: build
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
carryforward: run-jvm-8,run-jvm-11,run-jvm-17