codesnap.nvim/.github/workflows/lint.yml

32 lines
656 B
YAML
Raw Normal View History

2024-02-13 06:05:36 +00:00
name: Lint
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup nodejs
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install commit message convention lib
run: npm i commitlint-config-wizardoc -D
- name: Check commit message
uses: wagoid/commitlint-github-action@v4
- name: Check code style
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --check .