dbad10984a
The following actions are disabled unless run on the main repo: codeberg, publish, build/upload, reportBrokenPlugins Reviewed-on: https://codeberg.org/Ven/cord/pulls/4 Co-authored-by: Luna <imlvnaa@gmail.com> Co-committed-by: Luna <imlvnaa@gmail.com>
59 lines
1.9 KiB
YAML
59 lines
1.9 KiB
YAML
name: Test Patches
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
# Every day at midnight
|
|
- cron: 0 0 * * *
|
|
|
|
jobs:
|
|
TestPlugins:
|
|
if: github.repository == 'Vendicated/Vencord'
|
|
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
|
|
|
|
sudo apt-get install -y chromium-browser
|
|
|
|
- name: Build web
|
|
run: pnpm buildWeb --standalone
|
|
|
|
- name: Create Report
|
|
timeout-minutes: 10
|
|
run: |
|
|
export PATH="$PWD/node_modules/.bin:$PATH"
|
|
export CHROMIUM_BIN=$(which chromium-browser)
|
|
|
|
esbuild scripts/generateReport.ts > dist/report.mjs
|
|
node dist/report.mjs >> $GITHUB_STEP_SUMMARY
|
|
env:
|
|
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
|
|
|
- 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=$(which chromium-browser)
|
|
export USE_CANARY=true
|
|
|
|
esbuild scripts/generateReport.ts > dist/report.mjs
|
|
node dist/report.mjs >> $GITHUB_STEP_SUMMARY
|
|
env:
|
|
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
|
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|