-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 952 Bytes
/
ci.yml
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
name: CI Build
on:
push:
branches:
- "**"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: "6.0"
mongodb-replica-set: rs0
- name: Restore dotnet tools
run: dotnet tool restore
- name: Restore dependencies
run: dotnet restore
- name: Check formatting
run: dotnet csharpier --check .
- name: Build
run: dotnet build --no-restore -c Release
- name: Pre-Test
run: sudo mkdir -p /var/lib/serval && sudo chmod 777 /var/lib/serval
- name: Test
run: dotnet test --no-build --verbosity normal --filter "TestCategory!=E2E&TestCategory!=E2EMissingServices" -c Release