Tests: Start implementing tests
Some checks failed
discord bot tests / discord bot tests (push) Failing after 17s
Some checks failed
discord bot tests / discord bot tests (push) Failing after 17s
Only convertDateToISOString for now
This commit is contained in:
parent
e04d8857f9
commit
79c292b417
4 changed files with 3684 additions and 124 deletions
30
.github/workflows/run_node_tests.yml
vendored
Normal file
30
.github/workflows/run_node_tests.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: discord bot tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "*" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
discord_bot_tests:
|
||||
permissions:
|
||||
contents: read # for actions/checkout to fetch code
|
||||
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
|
||||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
||||
runs-on: ubuntu-latest
|
||||
name: discord bot tests
|
||||
steps:
|
||||
# - name: Checkout the code
|
||||
# uses: actions/checkout@v3
|
||||
- name: install node and npm
|
||||
uses: actions/setup-node@v4
|
||||
|
||||
- name: install packages
|
||||
run: |
|
||||
npm install
|
||||
- name: run tests
|
||||
run: |
|
||||
npm jest
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue