🤖 Bip Bop - Fusion Framework Release #11421
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: 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@v6 | |
| with: | |
| ref: "${{ github.event.pull_request.head.sha }}" | |
| fetch-depth: ${{ steps.fetch-depth.outputs.value }} | |
| - name: Setup node and install deps | |
| uses: ./.github/actions/node-setup | |
| with: | |
| turbo-cache: true | |
| - uses: reviewdog/action-setup@v1 | |
| - name: Delete GitHub Actions comments | |
| uses: actions/github-script@v8 | |
| with: | |
| script: | | |
| const { data: comments } = await github.rest.issues.listComments({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| }); | |
| // Delete all GitHub Actions bot comments (they will be regenerated) | |
| const githubActionsComments = comments.filter(comment => | |
| comment.user && comment.user.login === 'github-actions[bot]' | |
| ); | |
| console.log(`Found ${githubActionsComments.length} GitHub Actions comments to delete`); | |
| await Promise.all( | |
| githubActionsComments.map(comment => | |
| github.rest.issues.deleteComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| comment_id: comment.id, | |
| }) | |
| ) | |
| ); | |
| - name: Lint source files | |
| uses: mongolyy/reviewdog-action-biome@v2 | |
| with: | |
| github_token: ${{ github.token }} | |
| reporter: ${{ steps.reporter.outputs.value }} | |
| level: error | |
| - name: Build affected packages | |
| id: build | |
| continue-on-error: true | |
| uses: ./.github/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@v5 | |
| 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-level=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/[email protected] | |