From 24647ec012294721fe1ec28d9cc15b6ff7581842 Mon Sep 17 00:00:00 2001 From: creations Date: Wed, 4 Jun 2025 10:47:13 -0400 Subject: [PATCH] reporter? --- .github/workflows/reportBrokenPlugins.yml | 23 ++++++++++------------- .gitignore | 1 - 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/.github/workflows/reportBrokenPlugins.yml b/.github/workflows/reportBrokenPlugins.yml index f4706300..f8c9afa2 100644 --- a/.github/workflows/reportBrokenPlugins.yml +++ b/.github/workflows/reportBrokenPlugins.yml @@ -32,17 +32,14 @@ jobs: - uses: actions/checkout@v4 if: ${{ github.event_name == 'workflow_dispatch' }} - - uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json + - uses: oven-sh/setup-bun@v2 - - name: Use Node.js 20 - uses: actions/setup-node@v4 with: - node-version: 20 - cache: "pnpm" + bun-version: latest - name: Install dependencies run: | - pnpm install --no-frozen-lockfile + bun install - name: Install Google Chrome id: setup-chrome @@ -51,7 +48,7 @@ jobs: chrome-version: stable - name: Build Equicord Reporter Version - run: pnpm buildReporter + run: bun run buildReporter - name: Run Reporter timeout-minutes: 10 @@ -59,7 +56,7 @@ jobs: export PATH="$PWD/node_modules/.bin:$PATH" export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-path }} - esbuild scripts/generateReport.ts > dist/report.mjs + bun build scripts/generateReport.ts --outfile dist/report.mjs stable_output_file=$(mktemp) canary_output_file=$(mktemp) @@ -72,20 +69,20 @@ jobs: fi if [[ "$branch" = "both" || "$branch" = "stable" ]]; then - node dist/report.mjs > "$stable_output_file" & + bun run dist/report.mjs > "$stable_output_file" & pids+=" $!" fi if [[ "$branch" = "both" || "$branch" = "canary" ]]; then - USE_CANARY=true node dist/report.mjs > "$canary_output_file" & + USE_CANARY=true bun run dist/report.mjs > "$canary_output_file" & pids+=" $!" fi exit_code=0 for pid in $pids; do - if ! wait "$pid"; then - exit_code=1 - fi + if ! wait "$pid"; then + exit_code=1 + fi done cat "$stable_output_file" "$canary_output_file" >> $GITHUB_STEP_SUMMARY diff --git a/.gitignore b/.gitignore index 8a9384a1..40b5b196 100644 --- a/.gitignore +++ b/.gitignore @@ -18,7 +18,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* -.pnpm-debug.log* *.tsbuildinfo src/userplugins