reporter?

This commit is contained in:
creations 2025-06-04 10:47:13 -04:00
parent 03e8b3c25d
commit 24647ec012
No known key found for this signature in database
GPG key ID: 8F553AA4320FC711
2 changed files with 10 additions and 14 deletions

View file

@ -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

1
.gitignore vendored
View file

@ -18,7 +18,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*
*.tsbuildinfo
src/userplugins