mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(ci): Setup a separate workflow action to test for pushes on master (#3951)
This commit is contained in:
parent
4bb8009e9f
commit
1f9bdd09a2
32
.github/workflows/ci-master.yml
vendored
Normal file
32
.github/workflows/ci-master.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Test Master
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [14.x, 16.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- name: npm install, build, and test
|
||||||
|
run: |
|
||||||
|
npm install -g npm@latest
|
||||||
|
npm install
|
||||||
|
npm run build --if-present
|
||||||
|
npm test
|
||||||
|
npm run lint
|
||||||
|
env:
|
||||||
|
CI: true
|
|
@ -1,6 +1,6 @@
|
||||||
name: Node CI
|
name: Test Pull Requests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
Loading…
Reference in a new issue