From 3fd2be55b0747de74afc9ac1569d27e63b957436 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Sun, 11 Jun 2023 09:40:16 +0200 Subject: [PATCH] CI: run linter --- .github/workflows/ci.yml | 1 - .github/workflows/lint.yml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3174c3f..40e0194 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,6 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] - workflow_dispatch: jobs: build: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..62cedb4 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +name: Linter + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + eslint: + name: Run ESlint + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install dependencies + run: npm ci + working-directory: ./frontend + + - name: Run ESLint + run: npx eslint . + working-directory: ./frontend