Skip to content

Commit

Permalink
CC Decom
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-hagar-sp committed Feb 9, 2024
1 parent e3128d5 commit f05685a
Show file tree
Hide file tree
Showing 82 changed files with 9 additions and 27,538 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
repository: sailpoint-oss/api-specs
path: api-specs
ref: main

- name: Set up Node
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -62,17 +62,9 @@ jobs:
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g go -o api_v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml -p enumClassPrefix=true --git-repo-id golang-sdk --git-user-id sailpoint-oss
node sdk-resources/postscript.js ./api_v2
- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
rm -rf ./api_cc
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.cc.yaml -g go -o api_cc --global-property skipFormModel=false --config sdk-resources/cc-config.yaml -p enumClassPrefix=true --git-repo-id golang-sdk --git-user-id sailpoint-oss
node sdk-resources/postscript.js ./api_cc
- name: After SDK Build
if: steps.buildCC.outcome == 'success'
if: steps.buildV2.outcome == 'success'
run: |
go get -d ./...
go install
go test
go test
11 changes: 1 addition & 10 deletions .github/workflows/bump_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ jobs:
- name: Update config files with new version
id: updateVersion
run: |
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/cc-config.yaml
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/v2-config.yaml
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/beta-config.yaml
yq -i '.packageVersion = "${{ github.event.inputs.version }}"' sdk-resources/v3-config.yaml
Expand Down Expand Up @@ -92,17 +91,9 @@ jobs:
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g go -o api_v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml -p enumClassPrefix=true --git-repo-id golang-sdk --git-user-id sailpoint-oss
node sdk-resources/postscript.js ./api_v2
- name: Build CC SDK
id: buildCC
if: steps.buildV2.outcome == 'success'
run: |
rm -rf ./api_cc
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.cc.yaml -g go -o api_cc --global-property skipFormModel=false --config sdk-resources/cc-config.yaml -p enumClassPrefix=true --git-repo-id golang-sdk --git-user-id sailpoint-oss
node sdk-resources/postscript.js ./api_cc
- name: After SDK Build
id: buildSDK
if: steps.buildCC.outcome == 'success'
if: steps.buildV2.outcome == 'success'
run: |
go get -d ./...
go install
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ build:
rm -rf ./v2
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g go -o v2 --global-property skipFormModel=false --global-property apiTests=false --config sdk-resources/v2-config.yaml
node sdk-resources/postscript.js ./v2
rm -rf ./cc
java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.cc.yaml -g go -o cc --global-property skipFormModel=false --global-property apiTests=false --config sdk-resources/cc-config.yaml
node sdk-resources/postscript.js ./cc

test:
go get -d ./...
Expand Down
24 changes: 0 additions & 24 deletions api_cc/.gitignore

This file was deleted.

23 changes: 0 additions & 23 deletions api_cc/.openapi-generator-ignore

This file was deleted.

75 changes: 0 additions & 75 deletions api_cc/.openapi-generator/FILES

This file was deleted.

1 change: 0 additions & 1 deletion api_cc/.openapi-generator/VERSION

This file was deleted.

8 changes: 0 additions & 8 deletions api_cc/.travis.yml

This file was deleted.

Loading

0 comments on commit f05685a

Please sign in to comment.