Skip to content

Tests

Tests #1089

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@v2
- uses: arduino/setup-task@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v2
with:
node-version: '16'
- run: task ci
- name: "Discord notification (not success)"
uses: rjstone/discord-webhook-notify@v1
if: "! success()"
with:
description: "⚠ Various Complements Tests failed!"
footer: "Node.js v16"
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 v16"
severity: info
avatarUrl: https://www.suruga-ya.jp/database/pics_light/game/871005085.jpg
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}