mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
ci: Refactor linting workflow (no-changelog) (#9714)
This commit is contained in:
committed by
GitHub
parent
cfef49e60a
commit
ab29ba9b58
32
.github/workflows/ci-master.yml
vendored
32
.github/workflows/ci-master.yml
vendored
@@ -46,34 +46,12 @@ jobs:
|
||||
collectCoverage: true
|
||||
|
||||
lint:
|
||||
name: Lint changes
|
||||
runs-on: ubuntu-latest
|
||||
name: Lint
|
||||
uses: ./.github/workflows/linting-reusable.yml
|
||||
needs: install-and-build
|
||||
steps:
|
||||
- uses: actions/checkout@v4.1.1
|
||||
with:
|
||||
repository: n8n-io/n8n
|
||||
ref: ${{ inputs.branch }}
|
||||
|
||||
- run: corepack enable
|
||||
- uses: actions/setup-node@v4.0.2
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: pnpm
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Restore cached build artifacts
|
||||
uses: actions/cache/restore@v4.0.0
|
||||
with:
|
||||
path: ./packages/**/dist
|
||||
key: ${{ github.sha }}-base:build
|
||||
|
||||
- name: Lint
|
||||
env:
|
||||
CI_LINT_MASTER: true
|
||||
run: pnpm lint
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
cacheKey: ${{ github.sha }}-base:build
|
||||
|
||||
notify-on-failure:
|
||||
name: Notify Slack on failure
|
||||
|
||||
Reference in New Issue
Block a user