mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-19 11:27:02 -04:00
reporter?
This commit is contained in:
parent
03e8b3c25d
commit
24647ec012
2 changed files with 10 additions and 14 deletions
23
.github/workflows/reportBrokenPlugins.yml
vendored
23
.github/workflows/reportBrokenPlugins.yml
vendored
|
@ -32,17 +32,14 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
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:
|
with:
|
||||||
node-version: 20
|
bun-version: latest
|
||||||
cache: "pnpm"
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pnpm install --no-frozen-lockfile
|
bun install
|
||||||
|
|
||||||
- name: Install Google Chrome
|
- name: Install Google Chrome
|
||||||
id: setup-chrome
|
id: setup-chrome
|
||||||
|
@ -51,7 +48,7 @@ jobs:
|
||||||
chrome-version: stable
|
chrome-version: stable
|
||||||
|
|
||||||
- name: Build Equicord Reporter Version
|
- name: Build Equicord Reporter Version
|
||||||
run: pnpm buildReporter
|
run: bun run buildReporter
|
||||||
|
|
||||||
- name: Run Reporter
|
- name: Run Reporter
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
@ -59,7 +56,7 @@ jobs:
|
||||||
export PATH="$PWD/node_modules/.bin:$PATH"
|
export PATH="$PWD/node_modules/.bin:$PATH"
|
||||||
export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-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)
|
stable_output_file=$(mktemp)
|
||||||
canary_output_file=$(mktemp)
|
canary_output_file=$(mktemp)
|
||||||
|
@ -72,20 +69,20 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$branch" = "both" || "$branch" = "stable" ]]; then
|
if [[ "$branch" = "both" || "$branch" = "stable" ]]; then
|
||||||
node dist/report.mjs > "$stable_output_file" &
|
bun run dist/report.mjs > "$stable_output_file" &
|
||||||
pids+=" $!"
|
pids+=" $!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$branch" = "both" || "$branch" = "canary" ]]; then
|
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+=" $!"
|
pids+=" $!"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit_code=0
|
exit_code=0
|
||||||
for pid in $pids; do
|
for pid in $pids; do
|
||||||
if ! wait "$pid"; then
|
if ! wait "$pid"; then
|
||||||
exit_code=1
|
exit_code=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
cat "$stable_output_file" "$canary_output_file" >> $GITHUB_STEP_SUMMARY
|
cat "$stable_output_file" "$canary_output_file" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -18,7 +18,6 @@ npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
.pnpm-debug.log*
|
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
|
|
||||||
src/userplugins
|
src/userplugins
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue