Regen for Java clients
This commit is contained in:
Родитель
4c5b431e9d
Коммит
3f8ce6ea11
|
@ -2,16 +2,20 @@ name: Build and test Java Get Started sample
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches:
|
||||
- main
|
||||
- regen/clients-**
|
||||
paths:
|
||||
- 'get-started/azure-auth/java/**'
|
||||
- 'get-started/quickstart/java/**'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- 'get-started/azure-auth/java/**'
|
||||
- 'get-started/quickstart/java/**'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
build-azure:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
|
@ -33,3 +37,26 @@ jobs:
|
|||
with:
|
||||
build-root-directory: get-started/azure-auth/java/
|
||||
arguments: build
|
||||
|
||||
build-quickstart:
|
||||
|
||||
defaults:
|
||||
run:
|
||||
working-directory: get-started/quickstart/java/
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
- name: Make gradlew executable
|
||||
run: chmod +x ./gradlew
|
||||
- name: Build with Gradle
|
||||
uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
build-root-directory: get-started/quickstart/java/
|
||||
arguments: build
|
||||
|
|
|
@ -28,6 +28,9 @@ jobs:
|
|||
- name: Regenerate .NET quickstart
|
||||
working-directory: get-started/quickstart/dotnet
|
||||
run: kiota generate -l CSharp -c PostsClient -n KiotaPosts.Client -d ../posts-api.yml -o ./src/Client --co
|
||||
- name: Regenerate Java quickstart
|
||||
working-directory: get-started/quickstart/java
|
||||
run: kiota generate -l Java -c GetUserApiClient -n kiotaposts.client -d ../posts-api.yml -o ./app/src/main/java/kiotaposts/client --co
|
||||
- name: Regenerate TypeScript quickstart
|
||||
working-directory: get-started/quickstart/typescript
|
||||
run: kiota generate -l TypeScript -c PostsClient -d ../posts-api.yml -o ./client --co
|
||||
|
@ -39,6 +42,9 @@ jobs:
|
|||
- name: Regenerate .NET Azure auth app
|
||||
working-directory: get-started/azure-auth/dotnet
|
||||
run: kiota generate -l CSharp -c GetUserApiClient -n GetUserClient.ApiClient -d ../get-me.yml -o ./src/Client --co
|
||||
- name: Regenerate Java Azure auth app
|
||||
working-directory: get-started/azure-auth/java
|
||||
run: kiota generate -l Java -c GetUserApiClient -n getuserclient.apiclient -d ../get-me.yml -o ./app/src/main/java/getuserclient/apiclient --co
|
||||
- name: Regenerate TypeScript Azure auth app
|
||||
working-directory: get-started/azure-auth/typescript
|
||||
run: kiota generate -l TypeScript -c GetUserApiClient -d ../get-me.yml -o ./client --co
|
||||
|
|
Загрузка…
Ссылка в новой задаче