-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Madhusudhan Reddy Vuppala
committed
Aug 3, 2023
1 parent
9a4dc79
commit a4cd443
Showing
3 changed files
with
6 additions
and
62 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,35 +3,11 @@ name: SDK CI-CD | |
on: | ||
push: | ||
branches: | ||
- refactor/modernize-sdk | ||
- release/MessagingAPI-V3-SDK | ||
|
||
jobs: | ||
retrieve-schema: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: openapi-to-json-schema | ||
name: openapi to json schema | ||
uses: telstra/[email protected] | ||
with: | ||
# specification-url: 'https://dev.telstra.com/sites/default/files/redocs/1620871323/messaging-api-swagger_0.yaml' | ||
specification-url: 'https://devxspecs.s3-ap-southeast-2.amazonaws.com/openapi.yaml' | ||
- id: list-file | ||
name: List file | ||
run: | | ||
value=`ls -al ${{ github.workspace }}/openapi/${{ steps.openapi-to-json-schema.outputs.json-schema-file }}` | ||
echo The spec file is $value | ||
shell: bash | ||
- id: upload-artifact | ||
name: openapi.json | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ steps.openapi-to-json-schema.outputs.json-schema-file }} | ||
path: ${{ github.workspace }}/openapi/${{ steps.openapi-to-json-schema.outputs.json-schema-file }} | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- retrieve-schema | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up node | ||
|
@@ -47,26 +23,14 @@ jobs: | |
- name: install dependencies | ||
if: steps.cache-node_modules.outputs.cache-hit != 'true' | ||
run: | | ||
npm install | ||
- id: download-artifact | ||
name: openapi.json | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: openapi.json | ||
- id: copy-file | ||
name: Copy file | ||
run: | | ||
value=`cp ${{ github.workspace }}/openapi.json src/messaging/openapi.json` | ||
ls -al src/messaging/openapi.json | ||
npm install | ||
shell: bash | ||
- name: run tests | ||
run: | | ||
npm run test | ||
lint: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- retrieve-schema | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: set up node | ||
|
@@ -83,16 +47,6 @@ jobs: | |
if: steps.cache-node_modules.outputs.cache-hit != 'true' | ||
run: | | ||
npm install | ||
- id: download-artifact | ||
name: openapi.json | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: openapi.json | ||
- id: copy-file | ||
name: Copy file | ||
run: | | ||
value=`cp ${{ github.workspace }}/openapi.json src/messaging/openapi.json` | ||
ls -al src/messaging/openapi.json | ||
shell: bash | ||
- name: run linting | ||
run: | | ||
|
@@ -119,16 +73,6 @@ jobs: | |
if: steps.cache-node_modules.outputs.cache-hit != 'true' | ||
run: | | ||
npm install | ||
- id: download-artifact | ||
name: openapi.json | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: openapi.json | ||
- id: copy-file | ||
name: Copy file | ||
run: | | ||
value=`cp ${{ github.workspace }}/openapi.json src/messaging/openapi.json` | ||
ls -al src/messaging/openapi.json | ||
shell: bash | ||
- name: create .npmrc | ||
run: | | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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