2022-05-02 15:10:58 +02:00
|
|
|
name: Linting
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2022-05-02 16:12:01 +02:00
|
|
|
- dev
|
2022-05-02 15:41:36 +02:00
|
|
|
pull_request_target:
|
2022-05-02 16:12:01 +02:00
|
|
|
types: [opened, reopened, synchronize]
|
2022-05-02 15:10:58 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
linting:
|
|
|
|
name: Run linters
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 16
|
|
|
|
|
|
|
|
- name: Install Node.js dependencies
|
2022-05-02 15:32:31 +02:00
|
|
|
run: yarn install
|
2022-05-02 15:10:58 +02:00
|
|
|
|
|
|
|
- name: Run linters
|
|
|
|
uses: wearerequired/lint-action@v2
|
|
|
|
with:
|
|
|
|
eslint: true
|
2022-05-02 15:59:11 +02:00
|
|
|
eslint_args: --max-warnings=0 src
|
2022-05-02 15:10:58 +02:00
|
|
|
eslint_extensions: tsx,ts
|
|
|
|
eslint_auto_fix: false
|