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/**'
|
- '!.vscode/**'
|
||||||
- '!docker/**'
|
- '!docker/**'
|
||||||
- '!packages/@n8n/benchmark/**'
|
- '!packages/@n8n/benchmark/**'
|
||||||
|
- '!packages/@n8n/task-runner-python/**'
|
||||||
- '!**/*.md'
|
- '!**/*.md'
|
||||||
excluded_source_branch_patterns:
|
excluded_source_branch_patterns:
|
||||||
description: 'Newline-separated list of glob patterns for source branches to EXCLUDE.'
|
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:
|
branches:
|
||||||
- '**'
|
- '**'
|
||||||
- '!release/*'
|
- '!release/*'
|
||||||
paths-ignore:
|
|
||||||
- packages/@n8n/task-runner-python/**
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
install-and-build:
|
install-and-build:
|
||||||
@@ -16,13 +14,14 @@ jobs:
|
|||||||
NODE_OPTIONS: '--max-old-space-size=3072'
|
NODE_OPTIONS: '--max-old-space-size=3072'
|
||||||
outputs:
|
outputs:
|
||||||
frontend_changed: ${{ steps.paths-filter.outputs.frontend == 'true' }}
|
frontend_changed: ${{ steps.paths-filter.outputs.frontend == 'true' }}
|
||||||
|
non_python_changed: ${{ steps.paths-filter.outputs.non-python == 'true' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
ref: refs/pull/${{ github.event.pull_request.number }}/merge
|
||||||
|
|
||||||
- name: Check for frontend changes
|
- name: Check for frontend changes
|
||||||
uses: dorny/paths-filter@v3
|
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
|
||||||
id: paths-filter
|
id: paths-filter
|
||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
@@ -33,13 +32,19 @@ jobs:
|
|||||||
- packages/@n8n/codemirror-lang/**
|
- packages/@n8n/codemirror-lang/**
|
||||||
- .bundlemonrc.json
|
- .bundlemonrc.json
|
||||||
- .github/workflows/ci-pull-requests.yml
|
- .github/workflows/ci-pull-requests.yml
|
||||||
|
non-python:
|
||||||
|
- '**'
|
||||||
|
- '!packages/@n8n/task-runner-python/**'
|
||||||
- name: Setup and Build
|
- 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
|
uses: n8n-io/n8n/.github/actions/setup-nodejs-blacksmith@f5fbbbe0a28a886451c886cac6b49192a39b0eea # v1.104.1
|
||||||
|
|
||||||
- name: Run format check
|
- name: Run format check
|
||||||
|
if: steps.paths-filter.outputs.non-python == 'true'
|
||||||
run: pnpm format:check
|
run: pnpm format:check
|
||||||
|
|
||||||
- name: Run typecheck
|
- name: Run typecheck
|
||||||
|
if: steps.paths-filter.outputs.non-python == 'true'
|
||||||
run: pnpm typecheck
|
run: pnpm typecheck
|
||||||
|
|
||||||
- name: Upload Frontend Build Artifacts
|
- name: Upload Frontend Build Artifacts
|
||||||
@@ -79,10 +84,11 @@ jobs:
|
|||||||
path: packages/frontend/editor-ui/dist/
|
path: packages/frontend/editor-ui/dist/
|
||||||
|
|
||||||
- name: BundleMon
|
- name: BundleMon
|
||||||
uses: lironer/bundlemon-action@v1.2.0
|
uses: lironer/bundlemon-action@cadbdd58f86faf1900725ef69d455444124b3748 # v1.3.0
|
||||||
|
|
||||||
unit-test:
|
unit-test:
|
||||||
name: Unit tests
|
name: Unit tests
|
||||||
|
if: needs.install-and-build.outputs.non_python_changed == 'true'
|
||||||
uses: ./.github/workflows/units-tests-reusable.yml
|
uses: ./.github/workflows/units-tests-reusable.yml
|
||||||
needs: install-and-build
|
needs: install-and-build
|
||||||
with:
|
with:
|
||||||
@@ -93,6 +99,7 @@ jobs:
|
|||||||
|
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
|
if: needs.install-and-build.outputs.non_python_changed == 'true'
|
||||||
uses: ./.github/workflows/linting-reusable.yml
|
uses: ./.github/workflows/linting-reusable.yml
|
||||||
needs: install-and-build
|
needs: install-and-build
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user