Issue #340 - Feature: CI(Github Actions) - Performs linting, formatting, and type-checking #1
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: Code Checker | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
linting_and_type-checking: | |
name: Linting, Formatting and Type checking | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: yarn | |
- name: Linting and Formatting checks | |
run: yarn run lint | |
- 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@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn run build |