partial setup of linting workflow #1
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
# # 🔗 Links: | |
# # Source file: https://github.com/obytes/react-native-template-obytes/blob/master/.github/workflows/lint-ts.yml | |
# name: Lint JSX (eslint, prettier) | |
# on: | |
# push: | |
# branches: [main, master] | |
# pull_request: | |
# branches: [main, master] | |
# jobs: | |
# lint: | |
# name: Lint JSX (eslint, prettier) | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: 📦 Checkout project repo | |
# uses: actions/checkout@v3 | |
# with: | |
# fetch-depth: 0 | |
# - name: 📦 Setup Node + NPM + install deps | |
# uses: ./.github/actions/setup-node-npm-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: npm run lint |