Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
feat: ci checks for linting and typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanjoshi914 committed Jun 11, 2024
1 parent b7fcca1 commit 59bd747
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Code quality - linting

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize]

jobs:
linting:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "yarn"
cache-dependency-path: frontend/yarn.lock

- run: yarn install

- name: Linting
run: yarn lint:js

- name: Prettier
run: yarn format
28 changes: 28 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Code quality - typecheck

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize]

jobs:
typecheck:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
cache: "yarn"
cache-dependency-path: frontend/yarn.lock

- run: yarn install

- name: Typechecking
run: yarn tsc:compile

0 comments on commit 59bd747

Please sign in to comment.