Skip to content

[Style] Add GitHub action for linter and pre-commit hook formater (#412) #7

[Style] Add GitHub action for linter and pre-commit hook formater (#412)

[Style] Add GitHub action for linter and pre-commit hook formater (#412) #7

Workflow file for this run

name: Linter
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run lint
run: npm run lint