Chore: Adding lint workflow and fixing format issues #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |