From ef5d10ea7f5e8813e3bb4d0cd46ff0f1fa24cf05 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Thu, 19 May 2022 04:01:15 +0000 Subject: [PATCH] add workflow --- .github/workflows/frontend-linting.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/frontend-linting.yml diff --git a/.github/workflows/frontend-linting.yml b/.github/workflows/frontend-linting.yml new file mode 100644 index 0000000..a506e18 --- /dev/null +++ b/.github/workflows/frontend-linting.yml @@ -0,0 +1,23 @@ +name: Frontend Linting and Formatting +on: + push: + branches: [develop] + pull_request: + branches: [develop] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm install + + - name: Run Prettier formatting + run: npm run format + + - name: Run ESLint + run: npm run lint -- --max-warnings=0