add n8n ci (#2431)

This commit is contained in:
LawyZheng
2025-05-23 01:59:00 +08:00
committed by GitHub
parent e5f52b8c9d
commit cfa7aa6b6e

37
.github/workflows/n8n-ci.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Run n8n package CI
on:
push:
branches: [ main ]
paths:
- 'integrations/n8n/**'
pull_request:
branches: [ main ]
paths:
- 'integrations/n8n/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Install dependencies
working-directory: integrations/n8n
run: pnpm install --frozen-lockfile
- name: Build and Lint
working-directory: integrations/n8n
run: pnpm prepublishOnly