Skip to content

Lint 7408930434

Lint 7408930434 #265

Workflow file for this run

name: Lint
run-name: Lint ${{ github.head_ref || github.run_id }}
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
# Cancel previous PR/branch runs when a new commit is pushed
concurrency:
group: ${{ github.head_ref || github.run_id }}
jobs:
lint:
name: Lint project
runs-on: ubuntu-latest
strategy:
matrix:
workdir: [/apps/server, /apps/front, /packages/docker, /packages/logger, /packages/shared]
steps:
- name: ⬇️ Checkout project code
uses: actions/checkout@v1
- name: 📦 Prepare environment
uses: ./.github/actions/prepare-env
with:
build: true
build-only-packages: true
- name: 📝 ESLint check
uses: reviewdog/action-eslint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: "github-pr-review"
fail_on_error: true
eslint_flags: "--ext .js,.jsx,.ts,.tsx ./"
workdir: ${{ matrix.workdir }}