Skip to content

Commit

Permalink
chore: Added linting and formatting to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukthiw committed Jan 7, 2024
1 parent 1f85b5a commit b8f2340
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Linting and Formatting Check

on:
push:

jobs:
lint-and-format:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14

- name: Install dependencies
run: npm install

- name: Prettier Check
run: npm run prettier . --check

- name: ESLint Check
run: npm run lint

0 comments on commit b8f2340

Please sign in to comment.