Skip to content

Commit baa7ad7

Browse files
committed
Update server-tests.yml to use apt for dependency installation and modify npm install command; add mongodb-memory-server dependency in package.json
1 parent 5402b0e commit baa7ad7

File tree

3 files changed

+278
-7
lines changed

3 files changed

+278
-7
lines changed

.github/workflows/server-tests.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,20 @@ jobs:
1818
test-server:
1919
runs-on: ubuntu-latest
2020
container:
21-
image: node:20-alpine
21+
image: node:20
2222

2323
steps:
2424
- name: Checkout code
2525
uses: actions/checkout@v4
2626

2727
- name: Install system dependencies
28-
run: apk add --no-cache python3 make g++ vips-dev mongodb
28+
run: apt-get update && apt-get install -y --no-install-recommends python3 make g++ libvips-dev
2929

3030
- name: Install dependencies in server directory
3131
run: |
3232
cd server
33-
npm install --platform=linux --libc=musl
33+
npm install
3434
3535
- name: Run tests in server directory
36-
env:
37-
MONGOMS_SYSTEM_BINARY: /usr/bin/mongod
3836
run: npm test
3937
working-directory: ./server

0 commit comments

Comments
 (0)