feat: add commitlint ci
Some checks failed
commit-lint / commit-lint (push) Failing after 31s

This commit is contained in:
Gökhan Özdemir 2025-07-23 17:37:14 +03:00
parent 9f19df48db
commit 16b824a2a9

View File

@ -0,0 +1,32 @@
name: commit-lint
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
commit-lint:
runs-on: openbsd-amd64
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Host node
run: |
if ! command -v node &> /dev/null
then
echo "Node is not installed on the host."
exit 1
fi
echo "Using system-installed Node: $(node version)"
- name: Install dependencies
run: npm ci
- name: Lint commits
run: |
git fetch origin master --depth=100
npx commitlint --config .ci/commitlint.config.js --from=origin/master --to=HEAD