Skip to content

Command Mentions

Command Mentions #370

Workflow file for this run

name: Tests
on:
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.10.x
uses: actions/setup-node@v3
with:
node-version: 16.10.x
- run: npm ci
- run: npm run build
- run: npm run test:src
test_18:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm ci
- run: npm run build
- name: Run npm run test:src
run: npm run test:src -- --coverage=false
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.10.x (earliest version supported)
uses: actions/setup-node@v3
with:
node-version: 16.10.x
- run: npm ci
- run: npm run build
- run: npm run test:e2e
env:
CI: true
NODE_ENV: "test"
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
SOUNDCLOUD_API_KEY: ${{ secrets.SOUNDCLOUD_API_KEY }}
CORDE_TEST_TOKEN: ${{ secrets.CORDE_TEST_TOKEN }}
CORDE_BOT_ID: ${{ secrets.CORDE_BOT_ID }}
BOT_TEST_ID: ${{ secrets.BOT_TEST_ID }}
GUILD_ID: ${{ secrets.GUILD_ID }}
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
QUEUE_CHANNEL_ID: ${{ secrets.QUEUE_CHANNEL_ID }}
QUEUE_ADMIN_ROLE_ID: ${{ secrets.QUEUE_ADMIN_ROLE_ID }}
QUEUE_CREATOR_ROLE_ID: ${{ secrets.QUEUE_CREATOR_ROLE_ID }}
BOT_PREFIX: "?"
# Try again with the minified build
- run: npm run build --production
- run: npm run test:e2e
env:
CI: true
NODE_ENV: "test"
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
SOUNDCLOUD_API_KEY: ${{ secrets.SOUNDCLOUD_API_KEY }}
CORDE_TEST_TOKEN: ${{ secrets.CORDE_TEST_TOKEN }}
CORDE_BOT_ID: ${{ secrets.CORDE_BOT_ID }}
BOT_TEST_ID: ${{ secrets.BOT_TEST_ID }}
GUILD_ID: ${{ secrets.GUILD_ID }}
CHANNEL_ID: ${{ secrets.CHANNEL_ID }}
QUEUE_CHANNEL_ID: ${{ secrets.QUEUE_CHANNEL_ID }}
QUEUE_ADMIN_ROLE_ID: ${{ secrets.QUEUE_ADMIN_ROLE_ID }}
QUEUE_CREATOR_ROLE_ID: ${{ secrets.QUEUE_CREATOR_ROLE_ID }}
BOT_PREFIX: "?"