From 68de174d0024d7074791bc5d7ae51425d1ba0493 Mon Sep 17 00:00:00 2001 From: Yukthiw <59380056+Yukthiw@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:39:05 -0500 Subject: [PATCH] chore: Added linting and formatting to github actions (#71) * chore: Added linting and formatting to github actions --- .github/workflows/linting.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/linting.yml diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 00000000..b40985b1 --- /dev/null +++ b/.github/workflows/linting.yml @@ -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