mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
ci: Skipping non related python checks (#18658)
This commit is contained in:
5
.actrc
Normal file
5
.actrc
Normal file
@@ -0,0 +1,5 @@
|
||||
-P blacksmith-2vcpu-ubuntu-2204=ubuntu-latest
|
||||
-P blacksmith-4vcpu-ubuntu-2204=ubuntu-latest
|
||||
-P ubuntu-22.04=ubuntu-latest
|
||||
-P ubuntu-20.04=ubuntu-latest
|
||||
--container-architecture linux/amd64
|
||||
1
.github/workflows/check-run-eligibility.yml
vendored
1
.github/workflows/check-run-eligibility.yml
vendored
@@ -35,6 +35,7 @@ on:
|
||||
- '!.vscode/**'
|
||||
- '!docker/**'
|
||||
- '!packages/@n8n/benchmark/**'
|
||||
- '!packages/@n8n/task-runner-python/**'
|
||||
- '!**/*.md'
|
||||
excluded_source_branch_patterns:
|
||||
description: 'Newline-separated list of glob patterns for source branches to EXCLUDE.'
|
||||
|
||||
15
.github/workflows/ci-pull-requests.yml
vendored
15
.github/workflows/ci-pull-requests.yml
vendored
@@ -5,8 +5,6 @@ on:
|
||||
branches:
|
||||
- '**'
|
||||
- '!release/*'
|
||||
paths-ignore:
|
||||
- packages/@n8n/task-runner-python/**
|
||||
|
||||
jobs:
|
||||
install-and-build:
|
||||
@@ -16,13 +14,14 @@ jobs:
|
||||
NODE_OPTIONS: '--max-old-space-size=3072'
|
||||
outputs:
|
||||
frontend_changed: ${{ steps.paths-filter.outputs.frontend == 'true' }}
|
||||
non_python_changed: ${{ steps.paths-filter.outputs.non-python == 'true' }}
|
||||
steps:
|
||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
with:
|
||||
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||
|
||||
- name: Check for frontend changes
|
||||
uses: dorny/paths-filter@v3
|
||||
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||
id: paths-filter
|
||||
with:
|
||||
filters: |
|
||||
@@ -33,13 +32,19 @@ jobs:
|
||||
- packages/@n8n/codemirror-lang/**
|
||||
- .bundlemonrc.json
|
||||
- .github/workflows/ci-pull-requests.yml
|
||||
non-python:
|
||||
- '**'
|
||||
- '!packages/@n8n/task-runner-python/**'
|
||||
- name: Setup and Build
|
||||
if: steps.paths-filter.outputs.non-python == 'true'
|
||||
uses: n8n-io/n8n/.github/actions/setup-nodejs-blacksmith@f5fbbbe0a28a886451c886cac6b49192a39b0eea # v1.104.1
|
||||
|
||||
- name: Run format check
|
||||
if: steps.paths-filter.outputs.non-python == 'true'
|
||||
run: pnpm format:check
|
||||
|
||||
- name: Run typecheck
|
||||
if: steps.paths-filter.outputs.non-python == 'true'
|
||||
run: pnpm typecheck
|
||||
|
||||
- name: Upload Frontend Build Artifacts
|
||||
@@ -79,10 +84,11 @@ jobs:
|
||||
path: packages/frontend/editor-ui/dist/
|
||||
|
||||
- name: BundleMon
|
||||
uses: lironer/bundlemon-action@v1.2.0
|
||||
uses: lironer/bundlemon-action@cadbdd58f86faf1900725ef69d455444124b3748 # v1.3.0
|
||||
|
||||
unit-test:
|
||||
name: Unit tests
|
||||
if: needs.install-and-build.outputs.non_python_changed == 'true'
|
||||
uses: ./.github/workflows/units-tests-reusable.yml
|
||||
needs: install-and-build
|
||||
with:
|
||||
@@ -93,6 +99,7 @@ jobs:
|
||||
|
||||
lint:
|
||||
name: Lint
|
||||
if: needs.install-and-build.outputs.non_python_changed == 'true'
|
||||
uses: ./.github/workflows/linting-reusable.yml
|
||||
needs: install-and-build
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user