From 58afbe1ab5a389faae8ebb7491a5f402b6a4e7ec Mon Sep 17 00:00:00 2001 From: Elie Baier <100542666+Fayorg@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:11:59 +0100 Subject: [PATCH] add: workflow lint.yml on pr and push on master --- .github/workflows/lint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..8d369f8 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,23 @@ +name: Lint + +on: + pull_request: + push: + branches: + - master + +jobs: + eslint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci # or yarn install + - uses: sibiraj-s/action-eslint@v3 + with: + eslint-args: '--ignore-path=.gitignore --quiet' + ignore-path: .eslintignore + extensions: 'js,jsx,ts,tsx' + annotations: true