Vencord/.github/workflows/reportBrokenPlugins.yml

44 lines
1.2 KiB
YAML
Raw Normal View History

name: Test Patches
on:
workflow_dispatch:
schedule:
# Every day at midnight
- cron: 0 0 * * *
jobs:
TestPlugins:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json
- name: Use Node.js 19
uses: actions/setup-node@v3
with:
node-version: 19
cache: "pnpm"
- name: Install dependencies
run: |
pnpm install --frozen-lockfile
pnpm add puppeteer
2022-11-11 13:06:04 +01:00
sudo apt-get install -y chromium-browser
- name: Build web
run: pnpm buildWeb --standalone
- name: Create Report
2022-11-11 13:06:04 +01:00
timeout-minutes: 10
run: |
export PATH="$PWD/node_modules/.bin:$PATH"
2022-11-11 13:06:04 +01:00
export CHROMIUM_BIN=$(which chromium-browser)
esbuild test/generateReport.ts > dist/report.mjs
node dist/report.mjs >> $GITHUB_STEP_SUMMARY
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
2022-11-11 13:30:51 +01:00
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}