Skip to content

ci: diff html reporter integration #7

ci: diff html reporter integration

ci: diff html reporter integration #7

Workflow file for this run

## This file is just for test, should be delete before review
name: Diff Assets Test
on:
issue_comment:
types: [created]
push:
branches:
- "ci/diff-html-reporter"
jobs:
get-runner-labels:
name: Get Runner Labels
uses: ./.github/workflows/get-runner-labels.yml
build:
name: Build
needs: [get-runner-labels]
strategy:
fail-fast: false # Build and test everything so we can look at all the errors
matrix:
array:
- target: x86_64-unknown-linux-gnu # For Cloud IDE
runner: ${{ needs.get-runner-labels.outputs.LINUX_RUNNER_LABELS }}
uses: ./.github/workflows/reusable-build.yml
with:
target: ${{ matrix.array.target }}
runner: ${{ matrix.array.runner }}
test: false
diff:
name: Diff Assets
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout Branch
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Pnpm Cache
uses: ./.github/actions/pnpm-cache
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: artifacts
- name: Build node packages
run: pnpm run build:js
- name: Move artifacts
run: node scripts/build-npm.cjs
- name: Build Viewer
run: pnpm run build:viewer
- name: Run Diff
run: node scripts/diff.cjs
- name: Upload Report
uses: dmnemec/copy_file_to_another_repo_action@main
env:
API_TOKEN_GITHUB: ${{ secrets.RSPACK_REPORT_ACCESS_TOKEN }}
with:
source_file: diff_output/.
destination_repo: web-infra-dev/rspack-report-website
destination_folder: diff/${{ github.run_id }}/
user_email: [email protected]
user_name: LingyuCoder
commit_message: Auto upload diff report