diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 00000000..7c458945 --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,27 @@ +name: Lint code +on: + push: + pull_request: + branches: + - main + types: [opened, reopened] +jobs: + run-linters: + name: Run linters + runs-on: ubuntu-latest + steps: + - name: Check out Git repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 20.x + + - name: Install Node.js dependencies + run: npm i node @latest + + - name: run lint + uses: wearerequired/lint-action@v2 + with: + eslint: true