chore: bump eslint from 8.57.0 to 8.57.1 #7624
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: PR | |
on: | |
pull_request: | |
types: | |
- ready_for_review | |
- opened | |
- reopened | |
- synchronize | |
paths-ignore: | |
- '.changeset/**' | |
- 'vue-press/**' | |
concurrency: | |
group: pr-${{ github.event.pull_request.id }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
pull-requests: write | |
jobs: | |
code-quality: | |
name: Check Code | |
runs-on: ubuntu-latest | |
env: | |
REVIEWDOG_GITHUB_API_TOKEN: ${{ github.token }} | |
steps: | |
- name: Determin reporter type | |
uses: haya14busa/action-cond@v1 | |
id: reporter | |
with: | |
cond: ${{ github.event.pull_request.draft }} | |
if_true: "github-pr-check" | |
if_false: "github-pr-review" | |
- name: Determine Checkout Depth | |
uses: haya14busa/action-cond@v1 | |
id: fetch-depth | |
with: | |
cond: ${{ github.actor != 'dependabot[bot]' }} | |
if_true: '0' | |
if_false: '1' | |
- uses: actions/checkout@v4 | |
with: | |
ref: "${{ github.event.pull_request.merge_commit_sha }}" | |
fetch-depth: ${{ steps.fetch-depth.outputs.value }} | |
- name: Setup node and install deps | |
uses: ./.github/workflows/actions/node-setup | |
with: | |
turbo-cache: true | |
- uses: reviewdog/action-setup@v1 | |
- name: Delete outdated ReviewDog comments | |
uses: Ardiannn08/resolve-outdated-comment@v1.3 | |
with: | |
token: ${{ github.token }} | |
filter-user: "reviewdog" | |
mode: "delete" | |
- name: Lint source files | |
run: reviewdog --runners=eslint -name=eslint -reporter=${{ steps.reporter.outputs.value }} -fail-on-error | |
- name: Build affected packages | |
id: build | |
continue-on-error: true | |
uses: ./.github/workflows/actions/build-packages | |
with: | |
only-affected: false | |
- name: process-build-log | |
run: node process-turbo-build-log.cjs > tsc-build.log | |
- name: upload build log | |
uses: actions/upload-artifact@v4 | |
with: | |
path: tsc-build.log | |
- name: Review build log | |
run: cat tsc-build.log | reviewdog -name=tsc -f=tsc -reporter=${{ steps.reporter.outputs.value }} -fail-on-error | |
- name: Check if build failed | |
if: steps.build.outcome == 'failure' | |
run: exit 1 | |
- name: Create Test Report | |
run: pnpm test run | |
- name: Create Test Coverage | |
id: test-coverage | |
if: ${{ ! github.event.pull_request.draft }} | |
run: pnpm test:coverage | |
- name: Publish test coverage | |
if: ${{ steps.test-coverage.conclusion == 'success' }} | |
uses: davelosert/vitest-coverage-report-action@v2.5.1 | |