Commit graph

127 commits

Author SHA1 Message Date
OlegIvaniv e4356283a8
ci: Additionally checkout PR head for e2e tests (no-changelog) (#6105)
* ci: Do not force branch for PR e2e smoke tests

* Use commit SHA for smoke test

* Debug: Echo git before running e2e

* Debugging: Create local merge commit

* Use container with git installed

* Debugging: Manual git checkout PR

* Do not skip checkout

* Use container with git installed

* Add breaking test, install git manualyl

* Use sudo

* Use container with git preinstalled

* Remove debugging e2e
2023-04-27 13:09:50 +02:00
Deborah f2cbe89785
ci: Update the release workflow (no-changelog) (#6088) 2023-04-26 16:08:02 +02:00
कारतोफ्फेलस्क्रिप्ट™ 4ba9e3d4b3
ci: Increase the timeout on the release process (no-changelog) (#6078) 2023-04-24 16:08:20 +02:00
OlegIvaniv d17d050a16
ci(editor): Do not run parallel jobs for a single spec (no-changelog) (#6052)
* ci(editor): Do not run parallel jobs for a single spec

* Fix syntax

* Only post e2e success comment on actual e2e success

* Set e2e-reusable output and check all container state
2023-04-21 13:31:39 +02:00
कारतोफ्फेलस्क्रिप्ट™ 0776257490
ci: Add a workflow to push n8n releases to release channels (no-changelog) (#5839)
add a workflow to push n8n releases to release channels
2023-04-14 13:56:12 +02:00
OlegIvaniv ea8c48ad37
ci: Skip e2e tests for community PRs (no-changelog) (#5971)
ci: Skip e2e tests for community PRs
2023-04-13 18:16:24 +02:00
OlegIvaniv 60d28fc761
ci: Prevent skipping of E2E fail job (no-changelog) (#5958)
* ci: Prevent skipping of E2E fail job (no-changelog)

* Set `continue-on-error: true` for e2e-reusable and add fail job

* Always run e2e checks

* Update 1-workflows.cy.ts

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-04-12 14:13:42 +02:00
OlegIvaniv b1e1c5b306
ci(editor): Add final checking step after PR E2E run (no-changelog) (#5914)
* ci(editor): Add final checking step after PR E2E run (no-changelog)

* Fix spacing

* Fix markdown
2023-04-06 10:15:26 +02:00
Alex Grozav dba5be37ae
feat: Add Sentry sourcemap uploading for editor-ui (no-changelog) (#5870)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-04-05 17:14:41 +02:00
Jan Oberhauser bdcfcb2ef7 Merge tag 'n8n@0.222.1' 2023-04-04 17:31:48 +02:00
github-actions[bot] 64fa80fe8a
🚀 Release 0.222.1 (#5897) 2023-04-04 15:36:08 +02:00
OlegIvaniv 5ff3dea7bb
ci: Always run e2e tests on PR approval (no-changelog) (#5900)
ci: Always run e2e tests on PR approval
2023-04-04 12:29:52 +02:00
कारतोफ्फेलस्क्रिप्ट™ e4796c169b
ci: Run db tests with a table-prefix as well (no-changelog) (#5818) 2023-03-30 15:09:13 +02:00
कारतोफ्फेलस्क्रिप्ट™ 9e9003bf13
ci: Drop support for Node.js 14 (#5835)
Node.js 14 goes EOL on 2023-04-30, and support for it should be dropped.
https://github.com/nodejs/Release#release-schedule
2023-03-30 12:23:39 +02:00
कारतोफ्फेलस्क्रिप्ट™ dc7e8c64e7
ci: Upgrade pnpm and turborepo (no-changelog) (#5820)
* ci: Upgrade pnpm to v8 (no-changelog)

* ci: Upgrade turborepo (no-changelog)
2023-03-30 11:54:37 +02:00
कारतोफ्फेलस्क्रिप्ट™ eb3ba83e63
ci: Setup code-coverage reporting for frontend packages (no-changelog) (#5679) 2023-03-14 13:13:21 +01:00
कारतोफ्फेलस्क्रिप्ट™ 3831201aaf
ci: Setup code-coverage reporting (no-changelog) (#5669) 2023-03-10 16:53:05 +01:00
कारतोफ्फेलस्क्रिप्ट™ 69b124fc78 ci: Allow releasing new versions as long as one of the packages is modified (no-changelog) 2023-03-10 13:28:11 +01:00
कारतोफ्फेलस्क्रिप्ट™ edf6313fa5
ci: Fix e2e tests (no-changelog) (#5658)
* ci: Fix e2e tests (no-changelog)

* Fix sign-in cypress command

* Run smoke test against head branch instead of base

---------

Co-authored-by: Oleg Ivaniv <oleg@n8n.io>
2023-03-09 17:08:47 +01:00
Mutasem Aldmour 71c349b071
ci: Add PR checklist (#5628)
* ci: Add PR checklist

* chore: add test change

* ci: add name

* ci: merge into workfow

* test: test action

* ci: add checklist

* ci: test checklist

* ci: remove comment

* ci: test checklist

* ci: add item to check item

* ci: update checklist items

* ci: add checklist item for migraitons

* ci: add hooks checklist item

* chore: remove comment
2023-03-09 12:49:37 +01:00
Mutasem Aldmour 6c1286fadf
ci: Remove second code owners for migrations (#5636)
* ci: Remove second code owners for migrations

* add a new line at the end of the file

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <netroy@users.noreply.github.com>
2023-03-07 10:58:27 +01:00
Mutasem Aldmour 96142d78de
ci: Add migrations code owners (#5625)
* ci: Add migrations code owners

* ci: add second review

* chore: add comment
2023-03-06 13:32:36 +01:00
कारतोफ्फेलस्क्रिप्ट™ d6357eed8c
ci: Disable provenance attestation on docker images to work around docker/buildx#1533 (#5617)
Fixes https://github.com/n8n-io/n8n/issues/5394
2023-03-06 09:53:50 +01:00
OlegIvaniv ddfa16cf27
refactor(editor): Add spec input to e2e-tests workflow (no-changelog) (#5622)
refactor(editor): Add spec input to e2e-tests workflow to run specific specs
2023-03-06 09:36:05 +01:00
OlegIvaniv 0004dc7ee8
ci(editor): Run e2e tests in parallel and improve build caching (#5445)
* WIP: Cypress parallel CI run test

* Trigger action on branch push

* Change build artifacts path

* Make sure to checkout the repo for testing job

* Use Cypress action for installing

* Lock cypress action userd version

* Skip node install step since we're using cypress node16 container

* Let Cypress handle pnpm install

* Use setup-node action for caching pnpm

* Set CYPRESS_CACHE_FOLDER

* Set CYPRESS_CACHE_FOLDER

* Manually cache pnpm store

* Dont fix pnpm version

* Use caching action also in testing job

* Zip packages dist before uploading the artifacts and change caching key

* Use absolute build paths for zipping job

* Use zip command in action

* Use tar for zipping packages

* Debuggin directory ls

* Debugging caching of modules

* Attempt to fix permissions issue

* Porivde Cypress executable via `CYPRESS_RUN_BINARY`

* Cache /github/home

* Adjust caching keys

* Debug: search for cypress exec

* Debugging: List dirs

* Use pnpm install action to install node_modules

* Do not log /home/runner

* Use node_modules/.bin Cypress binary

* Use absolute path to nodue modules

* Run Cypress via custom command

* Try with patched cypress action

* Revert logging

* Manually specify cypress config file

* Use absolute paths

* Fix cypress config name

* Debug print cypress config

* Remove debugging, increase to 4 containers

* Increase amount of containers

* Add env-version matrix

* Replace node14 with node18 in testing matrix

* Remove debugging and add node 14

* Use just node14

* Use cypress:base and remove browser req

* Give more general timeouts

* Try with node16

* Change cache directive position

* Replace zip artifact upload with cache

* Cache full packages not just dist

* Test with variable inputs

* Add commit info message

* Remove wrongly commited code

* Allow WF API dispatch

* Try Chrome browser again for comparison

* Include Monaco in the build

* Make e2e workflow re-usable

* Comment out invalid reusable workflow args

* Use electron and add node 14 run

* Fix env arg

* Provide custom ci-build-id

* Refactor remaining e2e workflow to use reusable action

* Remove single matrix directive

* Refactor ci-pull-req

* Make lint job dependant on test jobs

* Disable debugging job

* Make containers dynamic

* Cleanup & install git for linting action

* Use regular buntu image for PR linting

* Debugging failing tests

* Remove fixed spec name

* Debug e2e env var

* Do not use realkeypress which crashes electron runner

* Debugging

* chore: remove console

* chore: remove console

* test: remove node 14 tests

* test: replace test branch with master

* test: use tests in current branch

* test: use relative path

* chore: clean up

* test: only trigger on approval

* ci: update test PR

* ci: use curr branch

* ci: only run 14 on schedule, not for slack command

* ci: only run test on approval

* ci: clean up branch, rename step

* ci: rename steps

* ci: clean up cancel

* ci: clean up env var

* ci: set var

* ci: use chromef

* ci: use electron

* chore: add console log

* chore: add console log

* ci: update to string

* ci: set all env options

* test: build

* ci: fix step issue

* Fix failing tests & upgrade to Cypress 12

* Allow WF dispatch of e2e reusable

* Fix wrong naming in e2e-tests workflow

* Redeploy

* Fix tests

* Fix NDV tests and remove skipping of webhooks execution tests

* Fix clipboard read command

* Fix execution failing tests

* Reset before each 15 and 3

* Fix flaky tests

* Cleanup and log envs

* Test fixes

* Default owner spec fixes

* Get rid of CYPRESS_RUN_ENV

* Increase amount of containers, cleanup and add mock for credentials test call

* Cleanup & fix PR tests unit tests

* Wait for WF to loade in sharing spec

* Do linting and unit tests first

* Use frozen lockfile

* Revert back ci pull request jobs order

* Refine credential input selector and move cy.waitForLoad to correct position in 15-scheduler spec

* test: build

* Wait for WF execution instead of arbitraty timeout in WF execution spec, change order of jobs for ci pull request

* Fix flaky 3-default owner spec and wait for execution list to load in 20-workflow-executions

* Use setup node action

* Remove caching for lint/unit tests

* Experiment with parallel test & lint on ci

* Provide cache key dynamically

* Run e2e in parallel on pr

* Only run node14 e2e on daily schedule

* Make sure to generate generate new ci-build-id on re-runs

* Remove debugging prints

* Address PR comments

* Rename custom onBeforeUnload handler

* Make sure 19-execution spec waits for wf to load properly before import fixtures

---------

Co-authored-by: Mutasem <mutdmour@gmail.com>
2023-03-02 16:50:21 +01:00
agobrech 3d82614de2
ci: Fix the PR-title validation action (no-changelog) (#5576) 2023-02-28 11:54:46 +01:00
कारतोफ्फेलस्क्रिप्ट™ 8d84e684cf
ci: Check PR title on all branches, except release branches (no-changelog) (#5545) 2023-02-22 13:14:29 +01:00
कारतोफ्फेलस्क्रिप्ट™ aca94bb995
ci: Merge back released tag to master as Jan (no-changelog) (#5540) 2023-02-21 19:16:51 +01:00
कारतोफ्फेलस्क्रिप्ट™ 35a7856de5
ci: Release process improvements (no-changelog) (#5535)
* ci: Switch release workflows to trigger when releases are published (no-changelog)

* ci: Allow creating releases from tags and commits as well
2023-02-21 16:02:31 +01:00
कारतोफ्फेलस्क्रिप्ट™ 3ae005cafe
ci: Setup a semi-automated release process (no-changelog) (#5504)
* ci: Setup a semi-automated release process (no-changelog)

* create tag/release before deleting the temporary branch
2023-02-21 14:04:35 +01:00
कारतोफ्फेलस्क्रिप्ट™ b25c10a0e1
ci: Update the "Check Documentation URLs" workflow (no-changelog) (#5473)
* ci: Update the "Check Documentation URLs" workflow (no-changelog)

* fix the documentation url for HtmlExtract node
2023-02-14 13:00:15 +01:00
agobrech 309c995364
test: Change workflows to test from safe list to skip list (#5457)
* Remove check by safe list to skip list

* add an option to skip using statistics events

---------

Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
2023-02-10 17:11:06 +01:00
कारतोफ्फेलस्क्रिप्ट™ 172472664d
ci: Upgrade dev tooling (no-changelog) (#5424)
* Typescript
* Jest
* Turborepo
* pnpm
2023-02-09 13:52:41 +01:00
कारतोफ्फेलस्क्रिप्ट™ eda3b8aba0
ci: Re-enable CI jobs on nodejs 14.x (no-changelog) (#5153)
Revert "ci: Disable CI jobs on nodejs 14.x (no-changelog) (#5132)"

This reverts commit b3adcbd813.
2023-01-30 13:09:09 +01:00
Iván Ovejero 0a7ea89633
fix: Fix formatting/linting for CI (no-changelog) (#5264)
* ⬆️ Upgrade Prettier

* 📦 Update `pnpm-lock.yaml`

* 🎨 Format all packages

* 🔧 Specify `prettierPath`
2023-01-27 10:18:15 +01:00
Devin Buhl 2b776f39f1
ci: Publish n8n docker images to GHCR (#5213) 2023-01-24 15:36:58 +01:00
Mutasem Aldmour ce1f4efea7
test: Add e2e tests for PRs (#5176)
* test: add e2e tests for PRs

* test: update condition

* test: update job

* test: update with label
2023-01-17 13:44:19 +01:00
Iván Ovejero a0c5232aa5
fix: Build cli to fix Postgres and MySQL test runs (#5171) 2023-01-16 11:12:09 +01:00
कारतोफ्फेलस्क्रिप्ट™ b3adcbd813
ci: Disable CI jobs on nodejs 14.x (no-changelog) (#5132)
ci: Disable CI jobs on nodejs 14.x

This is temporary until I figure out why CI jobs keep randomly failing on nodejs 14.x
2023-01-12 09:46:28 +01:00
कारतोफ्फेलस्क्रिप्ट™ c738aa53e9
docs: Fix all credential documentation urls, and add a CI job to regularly validate these urls (#5012)
* add or update documentation URLs for all credentials

* add UTM params to documentation urls even when they are absolute urls

* Setup a CI job to validate documentation urls after every release

* Fix FacebookGraphApi documentation URL

* also validate node documentation urls

Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2022-12-22 17:01:29 +01:00
Mutasem Aldmour c41c707654
ci: Update slack notifications for build steps (#4985)
ci: update slack notifications
2022-12-20 14:13:24 +01:00
Mutasem Aldmour 17311ca049
feat: Add PR template (#4983) 2022-12-20 13:53:05 +01:00
OlegIvaniv 297a043875
test(editor): Fix flaky workflow tags e2e tests and store screenshots from CI runs (#4903)
* test(editor): Fix flaky add tags e2e specs, and upload cypress artifacts on failure

* Only run smoke test to debug the pipeline

* Add waitForLoad command and revert debugging changes
2022-12-13 11:55:51 +01:00
कारतोफ्फेलस्क्रिप्ट™ f4481e24e8
ci: Upgrade pnpm and turborepo (no-changelog) (#4878) 2022-12-09 17:16:26 +01:00
कारतोफ्फेलस्क्रिप्ट™ 38003476a0
ci: Publish docker images for all architectures under the same tag (no-changelog) (#4843) 2022-12-07 12:42:52 +01:00
कारतोफ्फेलस्क्रिप्ट™ a09ff27f43
ci: Use multiple jobs for publishing various docker images (#4837)
ci: use multiple jobs for publishing various docker images
2022-12-06 17:26:53 +01:00
Mutasem Aldmour ac944bf666
ci: Update slack notification messages for e2e tests (no-changelog) (#4812)
* ci: update e2e slack message

* add link

* update link
2022-12-05 11:10:14 +01:00
Mutasem Aldmour 8101c05d6f
ci: Add run name and start url for e2e tests and docker nighly command (no-changelog) (#4800)
* ci: add run name and start url

* update ref

* use branch as input

* add message for slack notifications

* add branch quotes

* remove @ from user

* make user not required
2022-12-02 19:56:29 +01:00
कारतोफ्फेलस्क्रिप्ट™ 86a4965e9a
ci: Move full E2E tests into their own scheduled workflow (#4757) 2022-11-29 13:31:36 +01:00
कारतोफ्फेलस्क्रिप्ट™ 500775de69
ci: Make end-to-end testing independent of development environments (no-changelog) (#4709)
* use user-folder override consistently everywhere, including for the `.cache` folder

* use consistent config for e2e tesing, skipping config loading from env and config files

* simplify all the cypress commands, and run all e2e tests on master
2022-11-24 12:49:01 +01:00