RID-4898 change sdk default url to api gateway #52
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: CI | |
env: | |
NODE_VERSION: 18.0.0 | |
RUNID_VERSION_SUFFIX: ${{ github.run_id }}.${{ github.run_attempt }} | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js v${{ env.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- name: Install yarn | |
run: npm install --global yarn | |
- name: Install dependencies | |
run: | | |
cd package | |
yarn | |
- name: Audit | |
run: | | |
yarn global add improved-yarn-audit | |
cd package | |
yarn run ci-audit | |
- name: Lint | |
run: | | |
cd package | |
yarn lint | |
- name: Build | |
run: | | |
cd package | |
yarn build | |
- name: Test | |
run: | | |
cd package | |
yarn test | |
- name: Pack | |
run: | | |
cd package/dist | |
yarn pack | |
cd .. | |
- name: Archive NPM package | |
uses: actions/upload-artifact@v3 | |
with: | |
if-no-files-found: error | |
retention-days: 30 | |
name: react-ts-riskid-npm-package | |
path: package/transmitsecurity-riskid-reactjs-ts-v*.tgz | |
- name: Archive failure data | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: failure-data | |
path: | | |
/home/runner/.npm/_logs |