Skip to content

Commit

Permalink
Create lint.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Tuan Duc Tran <[email protected]>
  • Loading branch information
tuanductran authored Mar 4, 2024
1 parent 461e276 commit 4b492ca
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:
branches: [master, develop]

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout Master
uses: actions/checkout@v4

- uses: pnpm/[email protected]

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- name: Install Dependencies
run: pnpm i

- name: Lint ESLint
run: pnpm lint

0 comments on commit 4b492ca

Please sign in to comment.