Skip to content

Commit

Permalink
feat(ci): add conventional commits check
Browse files Browse the repository at this point in the history
Signed-off-by: iverly <[email protected]>
  • Loading branch information
iverly committed Oct 24, 2023
1 parent 30234aa commit bfaf69f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check

on:
pull_request:
branches: [main]
types: [opened, edited, synchronize]

jobs:
conventional-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install dependencies
run: npm install @commitlint/config-conventional
- name: Configure commitlint
run: |
echo "module.exports = {extends: ['@commitlint/config-conventional']};" > commitlint.config.js
- name: Run commitlint
uses: wagoid/commitlint-github-action@v5
env:
NODE_PATH: ${{ github.workspace }}/node_modules

0 comments on commit bfaf69f

Please sign in to comment.