Skip to content

fix: test ci #2428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/actions/setup-databases-binary/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Install MongoDB and Redis Binaries
description: 'Install MongoDB and Redis binaries for testing'

runs:
using: 'composite'
steps:
- name: Install MongoDB
shell: bash
run: |
sudo apt-get install gnupg curl
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
--dearmor
echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] http://repo.mongodb.org/apt/debian bookworm/mongodb-org/8.0 main" | \
sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org

- name: Install Redis
shell: bash
run: |
sudo apt-get install -y redis-server
sudo systemctl disable redis.service --now
sudo systemctl disable redis-server.service --now
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,20 @@ jobs:
name: Test
timeout-minutes: 10
runs-on: ubuntu-latest
env:
REDISMS_SYSTEM_BINARY: /usr/bin/redis-server
REDISMS_DISABLE_POSTINSTALL: 1
MONGOMS_SYSTEM_BINARY: /usr/bin/mongod
MONGOMS_DISABLE_POSTINSTALL: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js and pnpm
uses: ./.github/actions/setup-node
with:
node-version: '22.x'
- name: Setup MongoDB and Redis Binaries
uses: ./.github/actions/setup-databases-binary
- name: Setup MongoDB and Redis
uses: ./.github/actions/setup-databases
- name: Run Lint
Expand Down
9 changes: 9 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,12 @@ catalog:
zod: 3.24.3
zx: 7.2.3
zx-cjs: 7.0.7-0
ignoredBuiltDependencies:
- mongodb-memory-server
- redis-memory-server
onlyBuiltDependencies:
- '@nestjs/core'
- '@swc/core'
- esbuild
- sharp
- simple-git-hooks
Loading