Equicord/.github/workflows/reportBrokenPlugins.yml

68 lines
2.2 KiB
YAML
Raw Normal View History

name: Test Patches
on:
2024-11-01 01:02:07 -04:00
workflow_dispatch:
schedule:
# Every day at midnight
2024-11-01 01:02:07 -04:00
- cron: 0 0 * * *
jobs:
2024-11-01 01:02:07 -04:00
TestPlugins:
name: Test Patches
runs-on: ubuntu-latest
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
steps:
- uses: actions/checkout@v4
if: ${{ github.event_name == 'schedule' }}
with:
ref: dev
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
- uses: actions/checkout@v4
if: ${{ github.event_name == 'workflow_dispatch' }}
2024-04-17 14:29:47 -04:00
- uses: pnpm/action-setup@v3 # Install pnpm using packageManager key in package.json
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
- name: Install Google Chrome
id: setup-chrome
uses: browser-actions/setup-chrome@82b9ce628cc5595478a9ebadc480958a36457dc2
with:
chrome-version: stable
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
- name: Build Equicord Reporter Version
run: pnpm buildReporter
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
- name: Create Report
timeout-minutes: 10
run: |
export PATH="$PWD/node_modules/.bin:$PATH"
export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-path }}
2022-12-19 20:59:16 -05:00
2024-11-01 01:02:07 -04:00
esbuild scripts/generateReport.ts > dist/report.mjs
node dist/report.mjs >> $GITHUB_STEP_SUMMARY
env:
DISCORD_TOKEN: ${{ secrets.DTOKEN }}
DISCORD_WEBHOOK: ${{ secrets.WEBHOOK }}
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
- name: Create Report (Canary)
timeout-minutes: 10
if: success() || failure() # even run if previous one failed
run: |
export PATH="$PWD/node_modules/.bin:$PATH"
export CHROMIUM_BIN=${{ steps.setup-chrome.outputs.chrome-path }}
export USE_CANARY=true
2024-04-17 14:29:47 -04:00
2024-11-01 01:02:07 -04:00
esbuild scripts/generateReport.ts > dist/report.mjs
node dist/report.mjs >> $GITHUB_STEP_SUMMARY
env:
DISCORD_TOKEN: ${{ secrets.DTOKEN }}
DISCORD_WEBHOOK: ${{ secrets.WEBHOOK }}