Skip to content

Commit

Permalink
add workflow file for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jthrilly committed Oct 10, 2023
1 parent f4fa533 commit 3d23e00
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Lint and TS Check

on:
pull_request:
branches:
- '*'

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Run ESLint
run: pnpm run lint

ts-lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Install dependencies
run: pnpm install

- name: Run TypeScript Lint
run: pnpm run ts-lint

0 comments on commit 3d23e00

Please sign in to comment.