Merge test actions into one action
Some checks failed
Run Discord Radio Bot v3 Tests / test (push) Failing after 1m17s

This commit is contained in:
Logan Cusano
2024-04-14 15:58:00 -04:00
parent ac82b0efd0
commit bec4072837
3 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
name: Client Tests
on: [push, pull_request]
env:
NODE_ENV: development
DISCORD_CLIENT_ID: ${{ vars.DISCORD_CLIENT_ID }}
TEST_CHANNEL_ID: ${{ vars.TEST_CHANNEL_ID }}
TEST_GUILD_ID: ${{ vars.TEST_GUILD_ID }}
EXPECTED_CLIENT_ID: ${{ vars.EXPECTED_CLIENT_ID }}
PDAB_PORT: ${{ vars.PDAB_PORT }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Remove package-lock.json
working-directory: "./client"
run: rm package-lock.json
- name: Install dependencies
working-directory: "./client"
run: npm install
- run: echo "Node has finished installing dependencies"
- name: Run tests
working-directory: "./client"
run: npm test
- run: echo "Completed the tests"