diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml new file mode 100644 index 0000000000..086fb3ba61 --- /dev/null +++ b/.github/workflows/linting.yml @@ -0,0 +1,29 @@ +name: Lint + +on: + push: + branches: [ "staging","master" ] + pull_request: + branches: [ staging ,"master"] + +jobs: + lint: + runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '20' + + - name: Install dependencies + run: npm install + + - name: Run ESLint + run: npx eslint . --config .eslintrc.js