Skip to content

Commit

Permalink
[DE-248] DE-252 Typescript SDK - regenerating code (#3) (#2)
Browse files Browse the repository at this point in the history
* Automated commit message

* Automated commit message

* Automated commit message

---------

Co-authored-by: Michal <michal.pierog@chargify.com>
Co-authored-by: maxio-sdk <maxio-sdk@maxio.com>
  • Loading branch information
3 people authored Oct 26, 2023
1 parent 9ad1f55 commit 701ce73
Show file tree
Hide file tree
Showing 8 changed files with 3,335 additions and 3 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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 & run E2E tests
on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.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 --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 }}
run: pnpm run coverage
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
.DS_Store
node_modules
dist
coverage
coverage
.env
.vscode
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
testEnvironment: 'node',
testPathIgnorePatterns: ["dist"],
preset: 'ts-jest',
globals: {
'ts-jest': {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"scripts": {
"build": "rm -rf dist & tsc -p tsconfig.esm.json & tsc -p tsconfig.cjs.json",
"test": "jest --coverage --passWithNoTests",
"test": "jest",
"coverage": "jest --coverage",
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts .",
"prepare": "rm -rf dist & tsc -p tsconfig.esm.json & tsc -p tsconfig.cjs.json"
},
Expand Down Expand Up @@ -50,4 +51,4 @@
"bugs": {
"email": "support@chargify.com"
}
}
}
Loading

0 comments on commit 701ce73

Please sign in to comment.