build(deps): bump io.ktor:ktor-bom from 3.0.3 to 3.1.0 #2608
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Verify generated SDK | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
concurrency: | |
group: ${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
generate-sdk: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Build Generator Post-processor | |
working-directory: generator/openapi/src/main/resources/post-processor | |
run: npm ci && npm run clean && npm run compile | |
- id: build-with-maven | |
working-directory: generator | |
run: mvn clean install -P github-generate-action-profile | |
- name: Generate SDK Files | |
working-directory: generator/openapi | |
env: | |
KOTLIN_POST_PROCESS_FILE: "npm run --prefix src/main/resources/post-processor process" | |
run: | | |
mvn clean install exec:java "-Dnamespace=exemplar" "-DsdkVersion=1.0.0" "-Dspec=./src/test/resources/exemplar.yaml" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: sdk | |
path: generator/openapi/target/sdk | |
overwrite: true | |
verify-generated-sdk: | |
runs-on: ubuntu-latest | |
needs: generate-sdk | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: sdk | |
from-job: generate-sdk | |
path: generator/openapi/target/sdk | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: verify generated sdk | |
working-directory: generator/openapi/target/sdk | |
run: mvn verify |