-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/resource-mapping-component
* master: (30 commits) feat(core): Add versionControl feature flag (#6000) fix: Small changes to user activation modal (no-changelog) (#5962) fix(editor): Cleanup demo/video experiment (#5974) feat: Add variables feature (#5602) ci: Improve test for wait node (#5997) fix(editor): Fix moving canvas on middle click preventing lasso selection (#5996) fix(HTTP Request Node): Fix itemIndex in HTTP Request errors (#5991) refactor(editor): Refactor history and debounce mixins to composables (no-changelog) (#5930) feat(GitLab Node): Add Additional parameters for File List (#5621) build: Update license SDK to v2.1.0 (no-changelog) (#5987) fix(OpenAI Node): Update OpenAI Text Moderate input placeholder text (#5823) fix(Code Node): Handle user code returning `null` and `undefined` (#5989) fix(Google Sheets Trigger Node): Return actual error message fix(core): Make `getExecutionId` available on all nodes types (#5990) ci: Add checklist item hinting at not adding new dependencies for nodes (no-changelog) (#5985) fix(core): Improve SAML connection test result views (#5981) fix(IF Node): Fix typo in combine description (no-changelog) (#5964) ci: Add a workflow to push n8n releases to release channels (no-changelog) (#5839) fix(editor): Make sure to redirect to blank canvas after personalisation modal (#5980) fix(core): Fix paired item returning wrong data (#5898) ... # Conflicts: # packages/editor-ui/src/Interface.ts
- Loading branch information
Showing
156 changed files
with
4,585 additions
and
675 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 |
---|---|---|
|
@@ -7,24 +7,10 @@ on: | |
- 'master' | ||
|
||
jobs: | ||
# We disable this for now because cancelling runs makes the Cypress Cloud tests to hang. | ||
# cancel-previous-runs: | ||
# runs-on: ubuntu-latest | ||
# name: 'Cancel previous e2e test runs' | ||
# strategy: | ||
# matrix: | ||
# node-version: [16.x] | ||
|
||
# steps: | ||
# - name: 'Cancel previous runs' | ||
# uses: styfle/[email protected] | ||
# with: | ||
# access_token: ${{ github.token }} | ||
|
||
run-e2e-tests: | ||
name: E2E [Electron/Node 16] | ||
uses: ./.github/workflows/e2e-reusable.yml | ||
if: ${{ github.event.review.state == 'approved' }} | ||
if: ${{ github.event.review.state == 'approved' && !contains(github.event.pull_request.labels.*.name, 'community') }} | ||
with: | ||
branch: ${{ github.event.pull_request.head.ref }} | ||
user: ${{ github.event.pull_request.user.login || 'PR User' }} | ||
|
@@ -40,7 +26,7 @@ jobs: | |
if: always() | ||
steps: | ||
- name: E2E success comment | ||
if: needs.run-e2e-tests.result == 'success' | ||
if: ${{!contains(github.event.pull_request.labels.*.name, 'community') || needs.run-e2e-tests.result == 'success' }} | ||
uses: peter-evans/create-or-update-comment@v3 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
|
@@ -57,6 +43,10 @@ jobs: | |
:warning: Some Cypress E2E specs are failing, please fix them before merging | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Success job if community PR | ||
if: ${{ contains(github.event.pull_request.labels.*.name, 'community') }} | ||
run: exit 0 | ||
|
||
- name: Fail job if run-e2e-tests failed | ||
if: needs.run-e2e-tests.result == 'failure' | ||
run: exit 1 |
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,42 @@ | ||
name: 'Release: Push to Channel' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'n8n Release version to push to a channel' | ||
required: true | ||
|
||
release-channel: | ||
description: 'Release channel' | ||
required: true | ||
type: choice | ||
default: 'next' | ||
options: | ||
- next | ||
- latest | ||
|
||
jobs: | ||
release-to-npm: | ||
name: Release to NPM | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
- run: | | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
npm dist-tag add n8n@${{ github.event.inputs.version }} ${{ github.event.inputs.release-channel }} | ||
release-to-docker-hub: | ||
name: Release to DockerHub | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
steps: | ||
- uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- run: docker buildx imagetools create -t n8nio/n8n:${{ github.event.inputs.release-channel }} n8nio/n8n:${{ github.event.inputs.version }} |
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,48 +1,50 @@ | ||
paths: | ||
"packages/**": | ||
'packages/**': | ||
- If fixing bug, added test to cover scenario. | ||
- If addressing forum or Github issue, added link to description. | ||
"packages/**/*.ts": | ||
'packages/**/*.ts': | ||
- Added unit tests to cover new or updated functionality. | ||
"**/*.vue": | ||
'**/*.vue': | ||
- Used composition API for all new components. | ||
- Added component or unit tests to cover functionality. | ||
|
||
# cli | ||
"packages/cli/src/databases/migrations/**": | ||
- Requested review from at least two engineers on migration. | ||
'packages/cli/src/databases/migrations/**': | ||
- Requested review from at least two engineers on migration. | ||
- Avoided irreversible data migrations. | ||
- Avoided deleting or updating data keys. | ||
- Wrote 'down' migration if possible. | ||
"n8n/packages/cli/src/api/**": | ||
'n8n/packages/cli/src/api/**': | ||
- Added integration tests for new endpoints. | ||
|
||
# editor ui | ||
"packages/editor-ui/**/*.vue": | ||
'packages/editor-ui/**/*.vue': | ||
- Added E2E if adding new features. | ||
- Used design system tokens (colors, spacings...) where possible. | ||
"packages/editor-ui/src/mixins/restApi.ts": | ||
'packages/editor-ui/src/mixins/restApi.ts': | ||
- Avoided adding new methods. Only deleted from here. | ||
"packages/editor-ui/src/mixins/**": | ||
'packages/editor-ui/src/mixins/**': | ||
- Avoided adding new mixins (use composables instead). Only removed code from here. | ||
"packages/editor-ui/src/views/NodeView.vue": | ||
- Avoided adding code here. Only refactored to make it smaller. | ||
"packages/editor-ui/src/hooks/**": | ||
'packages/editor-ui/src/views/NodeView.vue': | ||
- Avoided adding code here. Only refactored to make it smaller. | ||
'packages/editor-ui/src/hooks/**': | ||
- Avoided adding new hooks. Only refactored to move hooks to relevant store instead. | ||
|
||
# nodes-base | ||
"packages/nodes-base/nodes/**": | ||
'packages/nodes-base/nodes/**': | ||
- Added workflow tests for nodes if possible. | ||
'packages/nodes-base/package.json': | ||
- Avoided adding dependencies for nodes if not absolutely necessary. | ||
|
||
# design-system | ||
"packages/design-system/**/*.vue": | ||
'packages/design-system/**/*.vue': | ||
- Used design system tokens (colors, spacings...) where possible. | ||
- Updated Storybook with new component or updated functionality. | ||
|
||
# e2e | ||
"cypress/e2e/**": | ||
'cypress/e2e/**': | ||
- Avoided chaining commands more than two or three times (to avoid flakiness because only last one will be retried). | ||
- Spoofed endpoints that are not critical for the test (to avoid flakiness). | ||
- Picked most efficient path to start the test (for example skipped account setup and starting at /workflow/new for a canvas test). | ||
- Avoided adding waits on time (use request intercepts instead). | ||
- Ensured each spec does not depend on any another spec to pass. | ||
- Ensured each spec does not depend on any another spec to pass. |
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
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
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
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
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
Oops, something went wrong.