41 lines
871 B
YAML
41 lines
871 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
checks: write
|
|
contents: write
|
|
|
|
jobs:
|
|
run-linters:
|
|
name: Run linters
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Install Node.js dependencies
|
|
run: cd src && npm i
|
|
|
|
- name: Configure Git user
|
|
run: |
|
|
git config --global user.name "github-actions[bot]"
|
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
|
|
|
- name: Run linters
|
|
uses: rkuykendall/lint-action@master
|
|
with:
|
|
auto_fix: true
|
|
commit_message: "style: Fix code style issues with ${linter}"
|
|
eslint: true
|
|
eslint_dir: "src/"
|