-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (42 loc) · 1.15 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
35
36
37
38
39
40
41
42
43
44
45
name: JFleet CI/CD
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
TERM: dumb
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Build with Gradle
run: ./gradlew test --console=plain -i
# Jacoco and codecov
- name: Jacoco
run: ./gradlew jacocoTestReport
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
build-latest:
runs-on: ubuntu-latest
env:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
TERM: dumb
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Build with Gradle
run: ./gradlew test -Pmysql8 --console=plain -i