-
Notifications
You must be signed in to change notification settings - Fork 47
44 lines (44 loc) · 1.14 KB
/
openapi-generator.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
38
39
40
41
42
43
44
name: OpenAPI Generator
'on':
push:
branches:
- '**'
pull_request:
branches:
- '**'
schedule:
- cron: 0 1 * * *
workflow_dispatch: null
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Generate OpenAPI Generator Client
uses: openapi-generators/[email protected]
with:
generator: java
openapi-file: openbanking-us.yaml
generator-tag: latest-release
- name: Create artifact
uses: actions/upload-artifact@v3
with:
name: generated-client
path: java-client/
- name: Set up JDK 18
uses: actions/setup-java@v3
with:
java-version: '18'
distribution: adopt
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build OpenAPI Generator Client
run: |
cd java-client
mvn clean test