-
Notifications
You must be signed in to change notification settings - Fork 32
43 lines (41 loc) · 1.13 KB
/
reusable-examples.yml
File metadata and controls
43 lines (41 loc) · 1.13 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
name: Reusable Examples Workflow
on:
workflow_call:
inputs:
target-branch:
description: 'Branch to checkout and test (defaults to the calling branch)'
required: false
type: string
default: ''
examples-script:
description: 'Examples script to execute'
required: false
type: string
default: './check-examples.sh'
java-version:
description: 'Java version to use for examples'
required: false
type: string
default: '16'
secrets:
PIPELINE_GITHUB_APP_ID:
required: false
PIPELINE_GITHUB_APP_PRIVATE_KEY:
required: false
jobs:
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: DataDog/datadog-api-client-java
ref: ${{ inputs.target-branch || github.ref }}
- name: Install Java
uses: actions/setup-java@v3
with:
java-version: ${{ inputs.java-version }}
distribution: "temurin"
cache: "maven"
- name: Check examples
run: ${{ inputs.examples-script }}
shell: bash