mirror of
https://github.com/zama-ai/fhevm-solidity.git
synced 2026-01-14 06:58:06 -05:00
23 lines
647 B
YAML
23 lines
647 B
YAML
name: Run commitlint on PR
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
commitlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 18.x
|
|
- run: npm ci
|
|
- name: Install commitlint
|
|
run: |
|
|
npm install -g @commitlint/cli @commitlint/config-conventional
|
|
- name: Validate all commits from PR
|
|
run: npx commitlint --config .github/config/commitlint.config.js --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
|