Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vl 6359 dev to rc #22

Merged
merged 33 commits into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
539793a
Merge pull request #11 from velocitycareerlabs/dev-to-main
michaelavoyan Sep 7, 2023
927e935
Merge pull request #13 from velocitycareerlabs/dev-to-main
michaelavoyan Sep 7, 2023
7df6259
inc version to v0.1.1
michaelavoyan Sep 7, 2023
31cc75f
Merge branch 'main' into rc-to-main
michaelavoyan Nov 22, 2023
90d7901
Merge pull request #15 from velocitycareerlabs/rc-to-main
michaelavoyan Nov 22, 2023
0cb0b75
Run tests
artemcheremnov Nov 27, 2023
805d7f5
Run tests
artemcheremnov Nov 27, 2023
4a985c9
Run tests
artemcheremnov Nov 27, 2023
65ac12c
Add build; skip tests
artemcheremnov Nov 27, 2023
b902082
Add build; skip tests
artemcheremnov Nov 27, 2023
7abcecd
Upload artifact
artemcheremnov Nov 27, 2023
addf6bd
Upload artifact
artemcheremnov Nov 27, 2023
dbfa6fc
Upload artifact
artemcheremnov Nov 27, 2023
7dcc104
Upload artifact
artemcheremnov Nov 27, 2023
0b47190
Upload artifact
artemcheremnov Nov 27, 2023
9a18fad
Publish artifact
artemcheremnov Nov 27, 2023
17f1693
Publish artifact
artemcheremnov Nov 27, 2023
fe3bd62
Publish artifact
artemcheremnov Nov 27, 2023
28ab03e
merge
anilasimbilen Nov 29, 2023
01ef90c
feat: entity test cases and fixes
anilasimbilen Nov 29, 2023
30e04e1
No publish job, all in build job
artemcheremnov Nov 29, 2023
3038264
Merge branch 'dev' into test-cases
michaelavoyan Dec 7, 2023
c828ee2
cleanup tests
michaelavoyan Dec 7, 2023
ec26c4f
Merge pull request #17 from velocitycareerlabs/test-cases
michaelavoyan Dec 13, 2023
e14aea7
Update workflow
artemcheremnov Dec 14, 2023
6a8fb8a
NodeJs sdk add tests
artemcheremnov Dec 14, 2023
e641927
NodeJs sdk add tests
artemcheremnov Dec 14, 2023
d613052
Versioning
artemcheremnov Dec 14, 2023
d2c2289
fix: versioning for release and prerelease
artemcheremnov Dec 15, 2023
5cf38db
fix: Rc branch name instead of staging
artemcheremnov Dec 15, 2023
67357a5
Merge pull request #16 from velocitycareerlabs/VL-6484
michaelavoyan Dec 18, 2023
ba371bd
token expires in property
michaelavoyan Dec 25, 2023
06dc703
Merge pull request #21 from velocitycareerlabs/VL-6359-auth-token
michaelavoyan Dec 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/nodejs-sdk-tests.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: NodeJS-SDK Tests

on:
pull_request:
branches:
- main
- rc
- dev
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: true
env:
NODE_VERSION: '20'
SDK_PATH: './packages/sdk'
jobs:
test-nodejs-sdk:
runs-on: ubuntu-latest
steps:
# Checkout
- name: Git clone repository
uses: actions/checkout@v4
# Setup Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
# Install dependencies
- name: Install dependencies
run: yarn --frozen-lockfile --pure-lockfile
working-directory: ${{ env.SDK_PATH }}
# Run test
- name: Run Test
run: yarn test
continue-on-error: false
working-directory: ${{ env.SDK_PATH }}
112 changes: 112 additions & 0 deletions .github/workflows/nodejs-sdk.workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: NodeJS-SDK

on:
push:
branches:
- main
- rc
- dev
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.sha }}
cancel-in-progress: true
env:
NODE_VERSION: '20'
SDK_PATH: './packages/sdk'
RC_SUFFIX: 'rc'
jobs:
test-nodejs-sdk:
runs-on: ubuntu-latest
steps:
# Checkout
- name: Git clone repository
uses: actions/checkout@v4
# Setup Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
# Install dependencies
- name: Install dependencies
run: yarn --frozen-lockfile --pure-lockfile
working-directory: ${{ env.SDK_PATH }}
# Run test
- name: Run Test
run: yarn test
continue-on-error: false
working-directory: ${{ env.SDK_PATH }}

build-nodejs-sdk:
runs-on: ubuntu-latest
needs:
- test-nodejs-sdk
steps:
# Checkout
- name: Git clone repository
uses: actions/checkout@v4
# Set Slug
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4
with:
short-length: 7
# Setup Node.js
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
# Install dependencies
- name: Install dependencies
run: yarn --frozen-lockfile --pure-lockfile
working-directory: ${{ env.SDK_PATH }}
# Get current version
- name: Get current version
run: |
echo SDK_VERSION=$(jq -r '"v" + .version' package.json) >> $GITHUB_ENV
echo SDK_NAME=$(jq -r '.name' package.json | cut -d'/' -f2) >> $GITHUB_ENV
working-directory: ${{ env.SDK_PATH }}
# Set New Version
- name: Set New Version
run: echo SDK_NEW_VERSION=${{ github.ref == 'refs/heads/main' && format('{0}', env.SDK_VERSION) || format('{0}-{1}.{2}', env.SDK_VERSION, env.RC_SUFFIX, env.GITHUB_SHA_SHORT) }} >> $GITHUB_ENV
# Set Version
- name: Set Version
run: npm version ${{ env.OPTION }}
env:
OPTION: ${{ github.ref == 'refs/heads/main' && format('{0} --allow-same-version', env.SDK_NEW_VERSION) || format('{0}', env.SDK_NEW_VERSION) }}
working-directory: ${{ env.SDK_PATH }}
# Build SDK
- name: Build SDK
run: yarn build
working-directory: ${{ env.SDK_PATH }}
# Pack SDK
- name: Pack SDK
run: yarn pack
working-directory: ${{ env.SDK_PATH }}
# Publish to npm
- name: Set NPM Packages Config
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
working-directory: ${{ env.SDK_PATH }}
# Git Set Identity
- name: Git Identity
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# Commit Version Locally for Github npm
- name: Commit Version Locally for Github npm
run: git add .npmrc && git commit -am "Prepare to release"
working-directory: ${{ env.SDK_PATH }}
# Publish
- name: Publish
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/rc' }}
run: npm publish ${{ github.repository_owner }}-${{ env.SDK_NAME }}-${{ env.SDK_NEW_VERSION }}.tgz --tag ${{ env.RELEASE_TAG }} --access public --userconfig ./.npmrc --force
env:
RELEASE_TAG: ${{ github.ref == 'refs/heads/main' && format('{0}', 'latest' ) || env.RC_SUFFIX }}
working-directory: ${{ env.SDK_PATH }}
# Upload Artifacts
- name: Upload Artifact
if: success()
uses: actions/upload-artifact@v3
with:
name: ${{ github.repository_owner }}-${{ env.SDK_NAME }}-${{ env.SDK_NEW_VERSION }}
path: ${{ env.SDK_PATH }}/${{ github.repository_owner }}-${{ env.SDK_NAME }}-${{ env.SDK_NEW_VERSION }}.tgz
if-no-files-found: error
retention-days: 1

Loading
Loading