fix: correct Firestore REST API limit format and fix typo Flesta #150
Workflow file for this run
This file contains hidden or 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 Check | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - main | |
| jobs: | |
| lint: | |
| name: ESLint & Prettier Check | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: npm | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Run ESLint | |
| run: npx eslint . --ext .js,.jsx,.ts,.tsx | |
| continue-on-error: true # Prevents the workflow from immediately stopping if lint fails, allowing prettier to run | |
| - name: Auto-format with Prettier | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| run: npx prettier --write "**/*.{js,jsx,ts,tsx,json,css,md,yml,yaml}" | |
| - name: Commit formatting changes | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "style: auto-format with Prettier" | |
| branch: ${{ github.head_ref }} | |
| - name: Comment on Failure | |
| if: failure() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
| uses: actions/github-script@v6 | |
| with: | |
| script: | | |
| const prAuthor = context.payload.pull_request.user.login; | |
| const message = `Hi @${prAuthor}, I guess you need to update your PR so that all CI checks get passed!`; | |
| await github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: message | |
| }); |