-
Notifications
You must be signed in to change notification settings - Fork 4.3k
37 lines (32 loc) · 1.02 KB
/
jacoco_report.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
name: Measure Java Test Coverage
on:
pull_request:
branches:
- master
paths:
- "airbyte-integrations/connectors/source-postgres/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "17"
- name: Publish CDK to MavenLocal
run: |
./gradlew :airbyte-cdk:java:airbyte-cdk:publishSnapshotIfNeeded
- name: Run Coverage
run: |
./gradlew :airbyte-integrations:connectors:source-postgres:jacocoTestReport
- name: Add coverage to PR
id: jacoco
uses: madrapps/[email protected]
with:
paths: ${{ github.workspace }}/airbyte-integrations/connectors/source-postgres/build/reports/jacoco/test/jacocoTestReport.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 64
title: Coverage report for source-postgres
update-comment: true