Skip to content

ci

ci #74

Workflow file for this run

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@v1
with:
file: ${{ matrix.bots }}/Test/coverage.opencover.xml
token: ${{ secrets.CODECOV_TOKEN }}
root_dir: ${{ matrix.bots }}