go-raycasting/.gitea/workflows/commit-lint.yml
kisekinopureya fdb66c3257
All checks were successful
commit-lint / commit-lint (push) Successful in 41s
feat: add commitlint ci
2025-07-23 17:41:57 +03:00

34 lines
774 B
YAML

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 install @commitlint/{cli,config-conventional}
- name: Lint commits
run: |
git fetch origin master --depth=100
npx commitlint --config .gitea/workflows/commitlint.config.js --from=origin/master --to=HEAD