Skip to content

Commit

Permalink
ci: add lint stage for each pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Aug 15, 2023
1 parent 65e0dae commit 4e3dd1a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Code Linting

on:
push:
workflow_call:

jobs:
eslint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run Lint checking
run: pnpm run lint

0 comments on commit 4e3dd1a

Please sign in to comment.