-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (42 loc) · 1.12 KB
/
Copy pathci.yml
File metadata and controls
46 lines (42 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
name: CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Verify Java ${{ matrix.java-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
java-version: ["17", "21", "25"]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
cache: maven
- name: Verify SDK, examples, documentation, and package artifacts
run: mvn --batch-mode --no-transfer-progress verify
- name: Upload coverage report
if: matrix.java-version == '17'
uses: actions/upload-artifact@v7
with:
name: jacoco-report
path: target/site/jacoco
- name: Upload Maven artifacts
if: matrix.java-version == '17'
uses: actions/upload-artifact@v7
with:
name: maven-artifacts
path: |
target/*.jar
pom.xml