Skip to content

Tests

Tests #1628

Workflow file for this run

name: "Tests"
on:
push:
paths:
- ".github/**/*"
- "src/*"
- "src/**/*"
- "*.js"
- "*.json"
schedule:
- cron: "0 0 * * *"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: corepack enable
- run: pnpm run ci
- name: "Discord notification (not success)"
uses: rjstone/discord-webhook-notify@v1
if: "! success()"
with:
description: "⚠ Various Complements Tests failed!"
footer: "Node.js v22"
severity: error
avatarUrl: https://www.suruga-ya.jp/database/pics_light/game/871005085.jpg
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}
notify:
needs: test
runs-on: ubuntu-latest
steps:
- name: "Discord notification (success)"
uses: rjstone/discord-webhook-notify@v1
if: always()
with:
description: "✅ Various Complements Tests passed!"
footer: "Node.js v22"
severity: info
avatarUrl: https://www.suruga-ya.jp/database/pics_light/game/871005085.jpg
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}