Skip to content

Chore: Adding lint workflow and fixing format issues #6

Chore: Adding lint workflow and fixing format issues

Chore: Adding lint workflow and fixing format issues #6

Workflow file for this run

name: Typescript Lint, Format and Type check workflow
on:
pull_request:
paths:
- "website/**"
jobs:
linting_and_type-checking:
name: Typescript Linting, Formatting and Type checking
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: website
- name: Linting and Formatting checks
run: yarn run lint
working-directory: website
- name: Type checking
run: yarn run typecheck
build:
name: Build check
runs-on: ubuntu-latest
needs: linting_and_type-checking
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn run build