mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -08:00
ci: Move full E2E tests into their own scheduled workflow (#4757)
This commit is contained in:
parent
09a48c51b6
commit
86a4965e9a
5
.github/workflows/ci-master.yml
vendored
5
.github/workflows/ci-master.yml
vendored
|
@ -35,11 +35,6 @@ jobs:
|
|||
- name: Test
|
||||
run: pnpm test
|
||||
|
||||
- name: Test E2E
|
||||
run: |
|
||||
pnpm cypress:install
|
||||
pnpm test:e2e:all
|
||||
|
||||
- name: Lint
|
||||
env:
|
||||
CI_LINT_MASTER: true
|
||||
|
|
46
.github/workflows/e2e-tests.yml
vendored
Normal file
46
.github/workflows/e2e-tests.yml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: End-to-End tests
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 3 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
timeout-minutes: 30
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [14.x, 16.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: pnpm/action-setup@v2.2.4
|
||||
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- name: Test E2E
|
||||
run: |
|
||||
pnpm cypress:install
|
||||
pnpm test:e2e:all
|
||||
|
||||
- name: Notify Slack on failure
|
||||
uses: act10ns/slack@v2.0.0
|
||||
if: failure()
|
||||
with:
|
||||
status: ${{ job.status }}
|
||||
channel: '#updates-build-alerts'
|
||||
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
Loading…
Reference in a new issue