From cfa7aa6b6e1dbf5505aa3609612c034c70a155dd Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Fri, 23 May 2025 01:59:00 +0800 Subject: [PATCH] add n8n ci (#2431) --- .github/workflows/n8n-ci.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/n8n-ci.yml diff --git a/.github/workflows/n8n-ci.yml b/.github/workflows/n8n-ci.yml new file mode 100644 index 00000000..9e90c069 --- /dev/null +++ b/.github/workflows/n8n-ci.yml @@ -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