-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 769 Bytes
/
tests.yml
File metadata and controls
38 lines (34 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_and_test:
strategy:
matrix:
mongodb-version: [4.4]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: MongoDB in GitHub Actions
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Restore dependencies
run: |
cd tests
dotnet restore
- name: Build
run: |
cd tests
dotnet build --no-restore
- name: Test
run: |
cd tests
dotnet test --no-build --verbosity normal