Skip to content

codebase refactor

codebase refactor #86

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