Files
DRBv3/.gitea/workflows/client_tests.yaml
Logan Cusano 854c73cc4e
All checks were successful
Client Tests / test (push) Successful in 1m30s
Run Socket Server Tests / test (push) Successful in 1m15s
Testing updates
- Added client tests, started with the pdabHandler interactions
- Updated caps in socket server tests
- Updated pdabHandler with uniform 'guild_id'
- Updated pdabHandler with production check to launch or not launch the python client
-
2024-04-14 15:47:29 -04:00

41 lines
928 B
YAML

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"