n8n/.github/workflows/ci-pull-requests.yml
Karl Hopkinson-Turrell fff0ce62d3
ci: check commit message format (#4010)
* ci: check commit message format

* ci: switch to PR title checking

* ci: target pull request checks to master
2022-09-06 10:26:33 +01:00

56 lines
1.1 KiB
YAML

name: Test Pull Requests
on:
pull_request:
branches:
- master
jobs:
check-pr-title:
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# https://www.notion.so/n8n/Release-Process-fce65faea3d5403a85210f7e7a60d0f8
types: |
feat
fix
perf
test
docs
refactor
build
ci
requireScope: false
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