-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
7,666 additions
and
21,021 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Install npm packages | ||
description: Installs npm packages and manages it's cache | ||
|
||
env: | ||
NODE_VERSION: 22.9.0 | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# https://github.com/pnpm/action-setup?tab=readme-ov-file#use-cache-to-reduce-installation-time | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
||
- name: Setup Node.js v${{ env.NODE_VERSION }} with pnpm cache | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
cache: "pnpm" | ||
|
||
- name: Install Dependencies | ||
shell: bash | ||
run: pnpm install --frozen-lockfile |
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
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
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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Validate | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
|
||
env: | ||
NODE_VERSION: 22.9.0 | ||
|
||
jobs: | ||
validate: | ||
name: Validate Source Code | ||
if: | | ||
!((github.actor == 'github-actions[bot]' || contains(github.event.pull_request.title, 'ci: update version & changelog')) && github.head_ref == 'changeset-release/main') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Codebase | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Cache & Install Dependencies | ||
uses: ./.github/actions/install-dependencies | ||
|
||
- name: Print timezone for timezone based tests | ||
run: date | ||
|
||
- name: Lint Source Code | ||
run: pnpm run lint | ||
|
||
- name: Run TypeScript Checks | ||
run: pnpm run typecheck | ||
|
||
- name: Build | ||
run: pnpm run build | ||
|
||
# test: | ||
# name: Run Tests | ||
# if: | | ||
# !((github.actor == 'rzpcibot' || contains(github.event.pull_request.title, 'build(onboarding-sdk): update version')) && github.head_ref == 'changeset-release/master') | ||
# runs-on: self-hosted | ||
# steps: | ||
# - name: Checkout Codebase | ||
# uses: actions/checkout@v4 | ||
# - name: Use Node v${{ env.NODE_VERSION }} | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: ${{ env.NODE_VERSION }} | ||
# - name: Setup Cache & Install Dependencies | ||
# uses: ./.github/actions/install-dependencies | ||
# - name: Run Unit Tests | ||
# run: pnpm test:coverage |
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 |
---|---|---|
|
@@ -20,7 +20,6 @@ | |
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
|
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
Oops, something went wrong.