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
50 lines (41 loc) · 1.19 KB
/
compatibility-data-prepper-api.yml
File metadata and controls
50 lines (41 loc) · 1.19 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
#
# 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@v4
with:
java-version: 11
distribution: temurin
- name: Checkout Data Prepper
uses: actions/checkout@v6
- 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@v7
with:
name: library-compatibility-report
path: ${{ github.workspace }}/data-prepper-api/build/reports/library-compatibility/report.html