-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (42 loc) · 1.22 KB
/
ajaja-integration-check.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
46
47
48
49
50
51
52
name: convention check w/ jacoco
on:
pull_request:
branches:
- prod
- dev
permissions:
checks: write
pull-requests: write
env:
GRADLE_VERSION: 8.3
JAVA_VERSION: '17'
JAVA_DISTRIBUTION: 'temurin'
GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED: true
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
- name: Setup Gradle w/ caching
uses: gradle/[email protected]
with:
gradle-version: ${{ env.GRADLE_VERSION }}
- name: Check Code Convention
run: ./gradlew -x test check
- name: Check Tests w/ Test Coverage
run: ./gradlew testWithJacoco
- name: Add Coverage on Pull Request
id: jacoco
uses: madrapps/[email protected]
with:
paths: ${{ github.workspace }}/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 60
min-coverage-changed-files: 60
title: Test Coverage Report