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

Config/de-612 codegenignore config #23

Merged
merged 21 commits into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
f983f1d
revert SDK-hot-merge integration from publish branch
Nov 6, 2023
e7e3014
revert SDK-hot-merge integration from publish branch
Nov 6, 2023
676acba
DE-571 added e2e for product-families (#8)
alberto-blacutt-maxio Nov 7, 2023
182021f
Merge remote-tracking branch 'origin/tests' into tests
patryk-grudzien-keen Nov 7, 2023
3d338e7
Merge branch 'main' into tests
patryk-grudzien-keen Nov 7, 2023
958948d
DE-117 removed clear site approach added teardown instead (#10)
alberto-blacutt-maxio Nov 7, 2023
276fc1b
merge from main
Nov 7, 2023
8e5a094
Merge branch 'main' into tests
Nov 8, 2023
6b81832
fixed merge conflicts
Nov 8, 2023
8d2a8b4
DE-557 Added e2e tests for products (#13)
alberto-blacutt-maxio Nov 10, 2023
c99870d
DE-569: added e2e tests for offers endpoints (#14)
alberto-blacutt-maxio Nov 14, 2023
33206ba
Merge branch 'main' into tests
Nov 15, 2023
909548a
fixed unit test types from latest sdk generator
Nov 15, 2023
e4f6024
Merge branch 'main' into tests
Nov 15, 2023
9ad594a
0.0.4 sdk update
alberto-blacutt-maxio Nov 21, 2023
641e9c0
DE-558 add e2e tests for subscriptions endpoint (#22)
alberto-blacutt-maxio Nov 22, 2023
f2855dc
DE-612: Added codegeignore config moved e2e folder configuration for …
Nov 23, 2023
751bac9
Merge branch 'main' into config/DE-612-codegenignore-config
alberto-blacutt-maxio Nov 23, 2023
29a7105
DE-612 fixed giactions directory
Nov 23, 2023
3572d65
DE-612 pnpm-workspace.yaml added for install dependencies
Nov 24, 2023
9a4f62e
DE-612: added codegenignore for pnpm-workspace.yaml
Nov 24, 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
6 changes: 6 additions & 0 deletions .codegenignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
e2e/**
.gitignore
pnpm-lock.yaml
.github/**
.husky
.lintstagedrc.json
45 changes: 45 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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: [18.x]
alberto-blacutt-maxio marked this conversation as resolved.
Show resolved Hide resolved
# 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: Install e2e dependencies
working-directory: ./e2e
run: pnpm install --frozen-lockfile
- 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
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
.vscode
.env
6 changes: 6 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.ts": [
"prettier --write",
"eslint"
]
}
6 changes: 6 additions & 0 deletions e2e/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.log
.DS_Store
node_modules
dist
coverage
test
26 changes: 26 additions & 0 deletions e2e/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"overrides": [
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],

"rules": {
"no-irregular-whitespace": 0,
"no-unused-vars": 0,
"no-explicit-any": 0
}
}
10 changes: 10 additions & 0 deletions e2e/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
testEnvironment: 'node',
preset: 'ts-jest',
globals: {
'ts-jest': {
tsConfig: 'tsconfig.base.json',
},
},
globalTeardown: "./src/utils/testTeardown.ts",
};
52 changes: 52 additions & 0 deletions e2e/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": "0.0.1",
"license": "MIT",
"sideEffects": false,
"scripts": {
"test": "jest",
"coverage": "jest --coverage",
"lint": "eslint --ignore-path .eslintignore --ext spec.js,spec.ts .",
"format": "prettier --write \"src/e2e/**/*.{js,ts}\""
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "es5"
},
"name": "advanced-billing-sdk-e2e",
"description": "e2e testing module",
"author": {
"name": "MaxioSDK",
"email": "[email protected]"
},
"devDependencies": {
"@types/jest": "^29.4.0",
"@types/node": "^20.9.4",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"eslint": "^8.34.0",
"husky": "^8.0.0",
"jest": "^29.4.3",
"lint-staged": "^15.0.2",
"prettier": "^3.0.3",
"ts-jest": "^29.0.5",
"tslib": "^2.5.0",
"typescript": "^4.9.5"
},
"repository": {
"type": "git",
"url": "https://github.com/maxio-com/ab-typescript-sdk.git"
},
"bugs": {
"email": "[email protected]"
},
"keywords": [
"advancedbillingsdk",
"maxio"
],
"contributors": [],
"dependencies": {
"advanced-billing-sdk": "../"
}
}
Loading