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

feat: ci config for linting and typecheck #417

Merged
merged 4 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
pavanjoshi914 marked this conversation as resolved.
Show resolved Hide resolved
Loading