Fixes #200
Workflow file for this run
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 TS (eslint, prettier) | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
lint: | |
permissions: | |
contents: read | |
pull-requests: write | |
name: Lint TS (eslint, prettier) | |
runs-on: ubuntu-latest | |
steps: | |
- name : π¦ Checkout project repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name : π¦ Setup Node + PNPM + install deps | |
uses: ./.github/actions/setup-node-pnpm-install | |
- name: πββοΈ Run ESLint PR | |
if: github.event_name == 'pull_request' | |
uses: reviewdog/action-eslint@v1 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
reporter: github-pr-review | |
eslint_flags: '. --ext .js,.jsx,.ts,.tsx' | |
- name: πββοΈ Run ESLint PR | |
if: github.event_name != 'pull_request' | |
run: pnpm run lint |