diff options
author | Vendicated <vendicated@riseup.net> | 2022-11-11 12:37:37 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-11-11 12:37:37 +0100 |
commit | a26f636c9b422f866b0dbe42566cd90c256483d1 (patch) | |
tree | 5bbe016b7053f8b48f7b0d73d422c2a4c7657008 /.github | |
parent | 8ba9c96f2075f5245a9fec369046559d6a1e107c (diff) | |
download | Vencord-a26f636c9b422f866b0dbe42566cd90c256483d1.tar.gz Vencord-a26f636c9b422f866b0dbe42566cd90c256483d1.tar.bz2 Vencord-a26f636c9b422f866b0dbe42566cd90c256483d1.zip |
ci: Automated plugin test with puppeteer
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/reportBrokenPlugins.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/reportBrokenPlugins.yml b/.github/workflows/reportBrokenPlugins.yml new file mode 100644 index 0000000..9f694a4 --- /dev/null +++ b/.github/workflows/reportBrokenPlugins.yml @@ -0,0 +1,37 @@ +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 + + - name: Build web + run: pnpm buildWeb --standalone + + - name: Create Report + run: | + export PATH="$PWD/node_modules/.bin:$PATH" + esbuild test/generateReport.ts > dist/report.mjs + node dist/report.mjs >> $GITHUB_STEP_SUMMARY + env: + DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} |