Lint 7408930434 #265
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |