Skip to content

Commit

Permalink
chore: add linter
Browse files Browse the repository at this point in the history
  • Loading branch information
DIY0R committed Aug 8, 2024
1 parent 4763523 commit cad662e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,28 @@ jobs:
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

linter:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

- name: Run Prettier
run: npm run prettier

- name: Run Lint
run: npm run lint

0 comments on commit cad662e

Please sign in to comment.