-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.12 KB
/
Copy pathci.yml
File metadata and controls
48 lines (39 loc) · 1.12 KB
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
44
45
46
47
48
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
name: Build & test (JDK ${{ matrix.java }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java: [ '21' ]
steps:
- name: Check out repository
uses: actions/checkout@v5
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven
- name: Build & test the library (with coverage)
run: ./mvnw -B --no-transfer-progress clean verify
- name: Install the library into the local repository
run: ./mvnw -B --no-transfer-progress install -DskipTests
- name: Build & test the sample application
working-directory: samples
run: ../mvnw -B --no-transfer-progress verify
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v7
with:
name: jacoco-report
path: target/site/jacoco
if-no-files-found: ignore