forked from opensearch-project/data-prepper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompatibility-data-prepper-api.yml
More file actions
55 lines (45 loc) · 1.48 KB
/
Copy pathcompatibility-data-prepper-api.yml
File metadata and controls
55 lines (45 loc) · 1.48 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
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.
#
name: Verify data-prepper-api compatibility
on:
push:
paths:
- 'data-prepper-api/**'
- '*gradle*'
pull_request:
paths:
- 'data-prepper-api/**'
- '*gradle*'
workflow_dispatch:
jobs:
verify-api-compatibility:
runs-on: ubuntu-latest
steps:
- name: Set up JDK
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: 11
distribution: temurin
- name: Checkout Data Prepper
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
with:
add-job-summary: on-failure
- name: Validate API compatibility
run: ./gradlew -p data-prepper-api validateCompatibility
- name: Output compatibility report
if: failure()
run: cat data-prepper-api/build/reports/library-compatibility/report.txt
- name: Upload Compatibility Report
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: library-compatibility-report
path: ${{ github.workspace }}/data-prepper-api/build/reports/library-compatibility/report.html