* Add paths to only trigger on source-postgres changes Co-authored-by: nguyenaiden <nguyenaiden@users.noreply.github.com>
33 lines
906 B
YAML
33 lines
906 B
YAML
name: Measure 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: Run Coverage
|
|
run: |
|
|
./gradlew :airbyte-integrations:connectors:source-postgres:jacocoTestReport
|
|
|
|
- name: Add coverage to PR
|
|
id: jacoco
|
|
uses: madrapps/jacoco-report@v1.3
|
|
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 |