mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
968b733fd6
* ci: Start supporting Node.js 18 Node.js 18 became the active LTS on 2022-10-25, and Node.js 16 went into maintenance mode. https://github.com/nodejs/Release#release-schedule We should also slowly deprecate node 16 support, [as support for it is ends much earlier now, due to support for openssl 1.1.1 ending](https://nodejs.org/en/blog/announcements/nodejs16-eol). * Remove hashing algorithms that are not available in newer node.js/openssl - RSA-MD4 - RSA-MDC2 - md4 - md4WithRSAEncryption - mdc2 - mdc2WithRSA * in e2e tests, resolve `localhost` to ipv4 instead of ipv6
52 lines
1.8 KiB
YAML
52 lines
1.8 KiB
YAML
name: PR E2E
|
|
|
|
on:
|
|
pull_request_review:
|
|
types: [submitted]
|
|
branch:
|
|
- 'master'
|
|
|
|
jobs:
|
|
run-e2e-tests:
|
|
name: E2E [Electron/Node 18]
|
|
uses: ./.github/workflows/e2e-reusable.yml
|
|
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' }}
|
|
spec: 'e2e/*'
|
|
secrets:
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
|
|
post-e2e-tests:
|
|
runs-on: ubuntu-latest
|
|
name: E2E [Electron/Node 18] - Checks
|
|
needs: [run-e2e-tests]
|
|
if: always()
|
|
steps:
|
|
- name: E2E success comment
|
|
if: ${{!contains(github.event.pull_request.labels.*.name, 'community') && needs.run-e2e-tests.outputs.tests_passed == 'true' }}
|
|
uses: peter-evans/create-or-update-comment@v3
|
|
with:
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
body: |
|
|
:white_check_mark: All Cypress E2E specs passed
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: E2E fail comment
|
|
if: needs.run-e2e-tests.result == 'failure'
|
|
uses: peter-evans/create-or-update-comment@v3
|
|
with:
|
|
issue-number: ${{ github.event.pull_request.number }}
|
|
body: |
|
|
: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: ${{ github.event.review.state != 'approved' || needs.run-e2e-tests.result == 'failure' }}
|
|
run: exit 1
|