chore(deps-dev): Bump typedoc from 0.25.1 to 0.25.2 in /generator/src/main/resources/dependencies #86
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: Generate & Test SDK | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.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@v3 | |
with: | |
java-version: '11' | |
distribution: 'adopt' | |
overwrite-settings: false | |
- id: build-with-maven | |
working-directory: ./generator | |
run: mvn clean install -P github-generate-action-profile | |
- name: Generate SDK Files | |
working-directory: ./generator | |
run: | | |
mvn clean install | |
mvn exec:java "-Dnamespace=exemplar" "-DsdkVersion=0.0.1-exemplar" "-Dspec=src/test/resources/exemplar.yaml" | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: core | |
path: core | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dependencies | |
path: generator/src/main/resources/dependencies/package.json | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: sdk | |
path: generator/target/sdk | |
verify-generated-sdk: | |
runs-on: ubuntu-latest | |
needs: generate-sdk | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: sdk | |
path: generator/target/sdk | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dependencies | |
path: generator/src/main/resources/dependencies/package.json | |
- uses: actions/download-artifact@v3 | |
with: | |
name: core | |
path: core | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.14.1 | |
- name: verify generated sdk | |
working-directory: ./generator/target/sdk | |
run: | | |
npm run prepare-sdk | |
npx tsc |