- 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 -
41 lines
928 B
YAML
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"
|