Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
fix: run mongo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arein committed Jan 26, 2023
1 parent 6fa24f5 commit bc4f3d6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ jobs:
tasks:
name: "[${{ matrix.os }}/rust-${{matrix.rust}}] ${{ matrix.cargo.name }}"
runs-on: ubuntu-latest
services:
mongodb:
image: mongo:4
ports:
- 27017:27017
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -62,7 +57,6 @@ jobs:
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 1G
SCCACHE_DIR: ${{ matrix.sccache-path }}
MONGO_ADDRESS: mongodb://mongodb:27017/dbName
steps:
# Checkout code
- name: "Git checkout"
Expand Down Expand Up @@ -110,8 +104,16 @@ jobs:
sccache --stop-server || true
sccache --start-server
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: '4.4'
mongodb-db: gilgamesh

- name: "Task ${{ matrix.cargo.name }}"
uses: actions-rs/cargo@v1
env:
MONGO_ADDRESS: mongodb://localhost:27017/gilgamesh
with:
command: ${{ matrix.cargo.cmd }}
args: ${{ matrix.cargo.args }}
Expand Down

0 comments on commit bc4f3d6

Please sign in to comment.