feat: downgrade log level when body can't be parsed #242
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: quality checks | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - src/**.ts | |
| - package.json | |
| - tsconfig.json | |
| - .github/workflows/**.yml | |
| # Required for xseman/coverage to comment on PRs (uses Issues API) | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: install | |
| run: yarn | |
| - name: build | |
| run: yarn run build | |
| - name: test | |
| run: yarn run test:ci | |
| # Skip on fork PRs: GITHUB_TOKEN cannot comment on PRs from forks | |
| - name: Coverage report | |
| if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository | |
| uses: xseman/coverage@v0.2.0 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| coverage-artifact-paths: | | |
| lcov:coverage/lcov.info | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install | |
| run: yarn | |
| - name: lint | |
| run: yarn |