testing with npm, also moved types to dev
Unit Tests with docker compose / unit-test (pull_request) Failing after 27s Details

This commit is contained in:
Sugui 2023-12-29 19:24:43 +01:00
parent 5d2c9cd325
commit 2081c2fea8
2 changed files with 6 additions and 6 deletions

View File

@ -10,10 +10,10 @@ jobs:
- name: Starting docker daemon
run: docker-init -- dockerd --host=unix:///var/run/docker.sock &
- name: Installing necessary packages
run: apk add nodejs git curl bash
run: apk add nodejs git curl bash nodejs
- name: Check out repository code
uses: actions/checkout@v3
- name: Install project dependencies
run: docker run -w /usr/src/app -v ./:/usr/src/app oven/bun:1 bun i --verbose
run: npm install #docker run -w /usr/src/app -v ./:/usr/src/app oven/bun:1 bun i --verbose
- name: Run docker-compose
run: docker compose down -v && docker compose run bot-api bun test

View File

@ -6,6 +6,10 @@
"@types/jest": "^29.5.11",
"@types/mongodb-memory-server": "^2.3.0",
"@types/supertest": "^6.0.1",
"@types/express": "^4.17.21",
"@types/express-list-endpoints": "^6.0.3",
"@types/jsonwebtoken": "^9.0.5",
"@types/mongoose": "^5.11.97",
"bun-types": "latest",
"jest": "^29.7.0",
"mongodb-memory-server": "^9.1.3",
@ -22,10 +26,6 @@
"test": "docker compose down -v && docker compose run bot-api bun test"
},
"dependencies": {
"@types/express": "^4.17.21",
"@types/express-list-endpoints": "^6.0.3",
"@types/jsonwebtoken": "^9.0.5",
"@types/mongoose": "^5.11.97",
"express": "^4.18.2",
"express-list-endpoints": "^6.0.0",
"jsonwebtoken": "^9.0.2",