Skip to content

Commit

Permalink
Merge pull request #8 from faast-rt/feature/change-commitlint
Browse files Browse the repository at this point in the history
feat(ci): use commitlint instead of agenthunt
  • Loading branch information
iverly authored Oct 24, 2023
2 parents 69fe2df + f34114c commit 5c68e25
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,21 @@ on:
types: [opened, edited, synchronize]

jobs:
check-for-cc:
conventional-commit:
runs-on: ubuntu-latest
steps:
- name: Check for conventional commits
uses: agenthunt/conventional-commit-checker-action@v1.0.0
- 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 5c68e25

Please sign in to comment.