-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 954 Bytes
/
ci.yaml
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
39
40
41
42
43
44
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
bots:
- Echo
- Moderation
defaults:
run:
working-directory: ${{ matrix.bots }}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: "7.0.x"
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: Test/coverage.opencover.xml
token: ${{ secrets.CODECOV_TOKEN }}
root_dir: ${{ matrix.bots }}
fixes: "*::${{ matrix.bots }}/"