diff --git a/.actrc b/.actrc new file mode 100644 index 0000000000..13abf9cbeb --- /dev/null +++ b/.actrc @@ -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 \ No newline at end of file diff --git a/.github/workflows/check-run-eligibility.yml b/.github/workflows/check-run-eligibility.yml index fb13d110e2..a012f02876 100644 --- a/.github/workflows/check-run-eligibility.yml +++ b/.github/workflows/check-run-eligibility.yml @@ -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.' diff --git a/.github/workflows/ci-pull-requests.yml b/.github/workflows/ci-pull-requests.yml index 6f0d499201..722694991d 100644 --- a/.github/workflows/ci-pull-requests.yml +++ b/.github/workflows/ci-pull-requests.yml @@ -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: