Skip to content

Commit

Permalink
Use mongo as a service instead of supercharge/mongodb-github-action (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell authored Mar 9, 2024
1 parent d3557ce commit c15d7c9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ env:
jobs:
Build:
runs-on: ubuntu-latest
name: Build

services:
mongo:
image: mongo:latest
ports: [ '27017:27017' ]

steps:
- name: Checkout
Expand All @@ -55,11 +59,6 @@ jobs:
with:
dotnet-version: 8.x

- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: '7'

- name: Install dependencies
run: dotnet restore

Expand Down

0 comments on commit c15d7c9

Please sign in to comment.