Tests: Start implementing tests
Some checks failed
discord bot tests / discord bot tests (push) Failing after 0s
Some checks failed
discord bot tests / discord bot tests (push) Failing after 0s
Only convertDateToISOString for now
This commit is contained in:
parent
e04d8857f9
commit
380f905fc2
4 changed files with 3677 additions and 124 deletions
24
.github/workflows/run_node_tests.yml
vendored
Normal file
24
.github/workflows/run_node_tests.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: discord bot tests
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
discord_bot_tests:
|
||||
runs-on: ubuntu-latest
|
||||
name: discord bot tests
|
||||
if: ${{ hostname != 'forgejo-runner-01' }}
|
||||
steps:
|
||||
- name: prerequisites
|
||||
run: |
|
||||
apt update
|
||||
apt install nodejs git -y
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 'latest'
|
||||
- name: install dependencies
|
||||
run: npm install
|
||||
- name: run tests
|
||||
run: npm test
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue