Files
n8n-enterprise-unlocked/.github/workflows/linting-reusable.yml
कारतोफ्फेलस्क्रिप्ट™ 52a9d4b3d9 ci: Use node.js 22 by default. Add initial support for node.js 24 (#16018)
2025-06-04 17:49:31 +02:00

46 lines
1.1 KiB
YAML

name: Reusable linting workflow
on:
workflow_call:
inputs:
ref:
description: GitHub ref to lint.
required: false
type: string
default: master
nodeVersion:
description: Version of node to use.
required: false
type: string
default: 22.x
cacheKey:
description: Cache key for modules and build artifacts.
required: false
type: string
default: ''
jobs:
lint:
name: Lint
runs-on: blacksmith-4vcpu-ubuntu-2204
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
ref: ${{ inputs.ref }}
- name: Setup Environment
uses: ./.github/actions/setup-and-build
with:
node-version: ${{ inputs.nodeVersion }}
enable-caching: true
skip-build: ${{ inputs.cacheKey != '' }}
- name: Lint Backend
run: pnpm lint:backend
- name: Lint Nodes
run: pnpm lint:nodes
- name: Lint Frontend
run: pnpm lint:frontend