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