-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 1.15 KB
/
main.yml
File metadata and controls
42 lines (38 loc) · 1.15 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
name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java_version: [25]
os: [windows-latest, macOS-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java_version }}
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
# coverage:
# name: Coverage
# runs-on: ubuntu-18.04
# needs: [build]
# if: github.event_name == 'push'
# steps:
# - uses: actions/checkout@v1
# with:
# fetch-depth: 1
# - uses: actions/setup-java@v1
# with:
# java-version: 21
# architecture: x64
# - name: Make Maven Wrapper executable
# if: contains(matrix.os, 'win') == false
# run: chmod +x ./mvnw
# - name: Build project
# run: ./mvnw jacoco:prepare-agent verify jacoco:report coveralls:report -DrepoToken=${{ secrets.coveralls }}