-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into n8n-4486-implement-…
…framework-for-extensions
- Loading branch information
Showing
401 changed files
with
28,377 additions
and
33,420 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: '3.9' | ||
|
||
services: | ||
mysql: | ||
image: mysql:5.7-debian | ||
environment: | ||
- MYSQL_DATABASE=n8n | ||
- MYSQL_ROOT_PASSWORD=password | ||
ports: | ||
- 3306:3306 | ||
|
||
postgres: | ||
image: postgres:11 | ||
environment: | ||
- POSTGRES_DB=n8n | ||
- POSTGRES_USER=root | ||
- POSTGRES_PASSWORD=password | ||
ports: | ||
- 5432:5432 |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Test Postgres and MySQL schemas | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
timeout-minutes: 30 | ||
|
||
env: | ||
DB_MYSQLDB_PASSWORD: password | ||
DB_POSTGRESDB_PASSWORD: password | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'npm' | ||
|
||
- name: Install npm and dependencies | ||
run: npm install -g npm@latest && npm install | ||
|
||
- name: Start MySQL & Postgres | ||
uses: isbang/compose-action@v1.3.2 | ||
with: | ||
compose-file: ./.github/docker-compose.yml | ||
|
||
- name: Build Core & Workflow | ||
run: npm run -w packages/workflow -w packages/core build | ||
|
||
- name: Test MySQL | ||
working-directory: packages/cli | ||
run: npm run test:mysql | ||
|
||
- name: Test Postgres | ||
working-directory: packages/cli | ||
run: npm run test:postgres | ||
|
||
- name: Test Postgres (alternate schema) | ||
working-directory: packages/cli | ||
run: npm run test:postgres:alt-schema |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
dist/test | ||
dist/**/*.{js.map,d.ts} | ||
dist/**/*.{js.map} | ||
|
||
.DS_Store | ||
|
||
|
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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const { compilerOptions } = require('./tsconfig.json'); | ||
|
||
/** @type {import('jest').Config} */ | ||
module.exports = { | ||
verbose: true, | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
testRegex: '\\.(test|spec)\\.(js|ts)$', | ||
testPathIgnorePatterns: ['/dist/', '/node_modules/'], | ||
globals: { | ||
'ts-jest': { | ||
isolatedModules: true, | ||
tsconfig: { | ||
...compilerOptions, | ||
declaration: false, | ||
sourceMap: false, | ||
skipLibCheck: true, | ||
}, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.