docs(sdk): add getIntegration #65
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: Run Client Tests | |
on: | |
push: | |
branches: | |
- master | |
- staging/** | |
pull_request: | |
merge_group: | |
jobs: | |
tests: | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- name: Build Typescript | |
run: npm run ts-build | |
- run: npm run test:cli | |
- run: npm run test:unit -- packages/cli | |
- name: Build Node Client | |
run: | | |
npm run -w @nangohq/node build | |
- name: Test Node CJS | |
shell: bash | |
run: | | |
RES=$(node packages/node-client/tests/built.cjs) | |
echo "$RES"; | |
[ "$RES" != *"Done"* ] || { exit 1; } | |
- name: Test Node ESM | |
shell: bash | |
run: | | |
RES=$(node packages/node-client/tests/built.js) | |
echo "$RES"; | |
[ "$RES" != *"Done"* ] || { exit 1; } |