From c15d7c912fe2d6622bf9f63dd7c41899909cfb1e Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Sat, 9 Mar 2024 20:24:31 +0300 Subject: [PATCH] Use mongo as a service instead of supercharge/mongodb-github-action (#217) --- .github/workflows/build.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f980d5..071300d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,7 +31,11 @@ env: jobs: Build: runs-on: ubuntu-latest - name: Build + + services: + mongo: + image: mongo:latest + ports: [ '27017:27017' ] steps: - name: Checkout @@ -55,11 +59,6 @@ jobs: with: dotnet-version: 8.x - - name: Start MongoDB - uses: supercharge/mongodb-github-action@v1.10.0 - with: - mongodb-version: '7' - - name: Install dependencies run: dotnet restore