Skip to content

Commit

Permalink
Add github action
Browse files Browse the repository at this point in the history
  • Loading branch information
kanatagu committed Nov 7, 2023
1 parent ef39d15 commit 7496635
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint and Format

on: [push]

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '18.16.0'

- name: Install Node.js dependencies
run: |
pnpm i --frozen-lockfile
pnpm lint
pnpm format
- name: Use reviewdog eslint
uses: reviewdog/action-eslint@v1
with:
reporter: github-check

0 comments on commit 7496635

Please sign in to comment.