Skip to content

Commit

Permalink
chore: Added linting and formatting to github actions (#71)
Browse files Browse the repository at this point in the history
* chore: Added linting and formatting to github actions
  • Loading branch information
Yukthiw authored Jan 11, 2024
1 parent 2ab5b14 commit 68de174
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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: '20.x'

- name: Install dependencies
run: npm install --save-dev

- name: Prettier Check
run: npx prettier ./Eplant --check

- name: ESLint Check
if: always()
run: npm run lint

0 comments on commit 68de174

Please sign in to comment.