Skip to content

Commit

Permalink
Merge pull request #171 from Josuto/save_all
Browse files Browse the repository at this point in the history
feat: add saveAll and deleteAll transactional operations
  • Loading branch information
Josuto authored Feb 11, 2024
2 parents 5ed3a44 + ec7b86d commit 554e694
Show file tree
Hide file tree
Showing 31 changed files with 1,770 additions and 516 deletions.
30 changes: 15 additions & 15 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
module.exports = {
parser: "@typescript-eslint/parser",
parser: '@typescript-eslint/parser',
parserOptions: {
// project: "tsconfig.json",
tsconfigRootDir: __dirname,
sourceType: "module"
sourceType: 'module',
},
plugins: ["@typescript-eslint/eslint-plugin", "no-only-or-skip-tests"],
plugins: ['@typescript-eslint/eslint-plugin', 'no-only-or-skip-tests'],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true
jest: true,
},
ignorePatterns: [".eslintrc.js"],
ignorePatterns: ['.eslintrc.js'],
rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": "error",
"no-only-or-skip-tests/no-only-tests": "error",
"no-only-or-skip-tests/no-skip-tests": "error"
}
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'no-console': ['error', { allow: ['warn'] }],
'no-only-or-skip-tests/no-only-tests': 'error',
'no-only-or-skip-tests/no-skip-tests': 'error',
},
};
30 changes: 17 additions & 13 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 18.x, 20.x ]
os: [ubuntu-latest, windows-latest]
node-version: [20.x, 21.x]
steps:
- name: Code Checkout 🛎️
uses: actions/checkout@v3
- name: Checkout Code 🛎️
uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node-version }} 🕸️
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Library Dependencies 💾
Expand All @@ -32,13 +32,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
node-version: [ 18.x, 20.x ]
os: [ubuntu-latest, windows-latest]
node-version: [20.x, 21.x]
steps:
- name: Code Checkout 🛎️
uses: actions/checkout@v3
- name: Checkout Code 🛎️
uses: actions/checkout@v4
- name: Setup Node ${{ matrix.node-version }} 🕸️
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Library Dependencies 💾
Expand All @@ -48,8 +48,12 @@ jobs:
- name: Install NestJS Example App Dependencies 💾
run: |
cd ./examples/nestjs-mongoose-book-manager
yarn install -f
yarn install --force
- name: Build NestJS Example App 🔧
run: yarn build
run: |
cd ./examples/nestjs-mongoose-book-manager
yarn build
- name: Run NestJS Example App Tests 🧪
run: yarn test
run: |
cd ./examples/nestjs-mongoose-book-manager
yarn test
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ lerna-debug.log*
.DS_Store

# Tests
/coverage
/**/coverage
/.nyc_output

# IDEs and editors
Expand Down
114 changes: 73 additions & 41 deletions README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 554e694

Please sign in to comment.