Skip to content

Commit

Permalink
github action for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
xevious78 committed Jan 8, 2024
1 parent b9b0667 commit 77cf052
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: lint

on:
pull_request:
types:
- opened
- edited
- synchronize
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v4
with:
node-version: '.nvmrc'

- run: npm i --frozen-lockfile

- run: npm run lint:es

- run: npm run lint:prettier

- run: npm run lint:ts

# needed for `commitlint`
# - run: git fetch origin main
# - name: PR title | commitlint
# run: echo '${{ github.event.pull_request.title }}' | bunx commitlint

0 comments on commit 77cf052

Please sign in to comment.