n8n/.github/workflows/test-e2e-vm-expressions-nightly.yml
Declan Carroll 20d8e90c95
ci: Refactor and optimizes E2E test runs in CI (#28968)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 07:09:32 +00:00

46 lines
1.6 KiB
YAML

name: 'Test: E2E VM Expressions Nightly'
on:
schedule:
- cron: '0 4 * * *'
workflow_dispatch:
inputs:
branch:
description: 'GitHub branch/ref to test'
required: false
type: string
default: 'master'
jobs:
prepare-docker:
uses: ./.github/workflows/prepare-docker-reusable.yml
with:
branch: ${{ github.event_name == 'schedule' && 'master' || inputs.branch }}
secrets: inherit
e2e:
name: E2E
needs: [prepare-docker]
uses: ./.github/workflows/test-e2e-reusable.yml
with:
branch: ${{ github.event_name == 'schedule' && 'master' || inputs.branch }}
test-mode: docker-artifact
test-command: pnpm --filter=n8n-playwright test:container:multi-main:e2e
workers: '1'
pre-generated-matrix: '[{"shard":1},{"shard":2},{"shard":3},{"shard":4},{"shard":5},{"shard":6},{"shard":7},{"shard":8},{"shard":9},{"shard":10},{"shard":11},{"shard":12},{"shard":13},{"shard":14},{"shard":15},{"shard":16}]'
n8n-env: '{"N8N_EXPRESSION_ENGINE":"vm"}'
secrets: inherit
notify-on-failure:
name: Notify Slack on failure
runs-on: ubuntu-slim
needs: [e2e]
if: failure() && github.event_name == 'schedule'
steps:
- uses: act10ns/slack@44541246747a30eb3102d87f7a4cc5471b0ffb7d # v2.1.0
with:
status: ${{ job.status }}
channel: '#project-secure-expression-evaluation'
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
message: "VM expression E2E nightly failed - ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"