DE-574 added CRUD e2e tests for reason codes (#62) #206
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 workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests on node | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs | |
name: Build Typescript-SDK | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --no-frozen-lockfile | |
- name: Build process verification | |
run: pnpm run build | |
- name: e2e tests verification | |
env: | |
SDK_KEY: ${{ secrets.CHARGIFY_API_KEY }} | |
PASSWORD: ${{ secrets.PASSWORD }} | |
SUBDOMAIN: ${{ secrets.SUBDOMAIN }} | |
DOMAIN: ${{ secrets.DOMAIN }} | |
working-directory: ./e2e | |
run: pnpm run test |