Update the convert-fromjson cmdlet to use the AsHashTable flag in ord… #35
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: "Build Powershell SDK" | |
env: | |
SAIL_CLIENT_ID: ${{ secrets.SDK_TEST_TENANT_CLIENT_ID }} | |
SAIL_CLIENT_SECRET: ${{ secrets.SDK_TEST_TENANT_CLIENT_SECRET }} | |
SAIL_BASE_URL: ${{ secrets.SDK_TEST_TENANT_BASE_URL }} | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build_powershell_sdk: | |
name: Build powershell SDK | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR branch | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
- name: Checkout API Specs Repo | |
uses: actions/checkout@v3 | |
with: | |
repository: sailpoint-oss/api-specs | |
path: api-specs | |
ref: main | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Build V3 SDK | |
id: buildV3 | |
run: | | |
rm -rf ./PSSailpoint/v3 | |
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v3.yaml -g powershell -o PSSailpoint/v3 --global-property skipFormModel=false --config sdk-resources/v3-config.yaml | |
node sdk-resources/postscript.js ./PSSailpoint/v3 | |
- name: Build Beta SDK | |
id: buildBeta | |
if: steps.buildV3.outcome == 'success' | |
run: | | |
rm -rf ./PSSailpoint/beta | |
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.beta.yaml -g powershell -o PSSailpoint/beta --global-property skipFormModel=false --config sdk-resources/beta-config.yaml | |
node sdk-resources/postscript.js ./PSSailpoint/beta | |
- name: Build V2 SDK | |
id: buildV2 | |
if: steps.buildBeta.outcome == 'success' | |
run: | | |
rm -rf ./PSSailpoint/v2 | |
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g powershell -o PSSailpoint/v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml | |
- name: Build CC SDK | |
id: buildCC | |
if: steps.buildV2.outcome == 'success' | |
run: | | |
rm -rf ./PSSailpoint/cc | |
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.cc.yaml -g powershell -o PSSailpoint/cc --global-property skipFormModel=false --config sdk-resources/cc-config.yaml | |
- name: After SDK Build | |
if: steps.buildCC.outcome == 'success' | |
shell: pwsh | |
run: | | |
$DebugPreference="Continue" | |
Import-Module -Name '.\PSSailpoint' -Verbose | |
Install-Module -Name Pester -Force | |
Invoke-Pester -Output Detailed ./PSSailpoint/tests/ |