From 89d227125d3c58b402a293a587e8b876655e6c32 Mon Sep 17 00:00:00 2001 From: Neal <34891912+nhitz@users.noreply.github.com> Date: Mon, 15 Apr 2024 09:51:34 -0700 Subject: [PATCH] ci: setup linting on pr --- .github/workflows/lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..7c214d8 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,26 @@ +name: Lint + +on: + push: + branches: + - main + pull_request: + branches: + - main + workflow_dispatch: + +jobs: + lint: + name: Lint Job + runs-on: ubuntu-latest + + steps: + - name: Check out Git repository + uses: actions/checkout@v4 + + - name: Install Node.js dependencies + run: npm ci + + - name: Run prettier-eslint + run: | + npm run lint