Skip to content

Commit

Permalink
GitHub workflow for linting and syntax checks (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozie2001 authored Nov 25, 2024
1 parent aa5db07 commit 9c6aab0
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Prettier Linter check

on:
push:
pull_request:
branches: [master]

jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: yarn install

- name: Run Prettier
run: yarn prettier --check .
24 changes: 24 additions & 0 deletions .github/workflows/typescript_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: TypeScript Syntax Error Check

on:
push:
pull_request:
branches: [master]

jobs:
typescript:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: yarn install

- name: Run TypeScript Check
run: yarn tsc --noEmit

0 comments on commit 9c6aab0

Please sign in to comment.