Skip to content

added ci for code coverage and build #2

added ci for code coverage and build

added ci for code coverage and build #2

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
bots:
- PoliNetworkBot
defaults:
run:
working-directory: ${{ matrix.bots }}
steps:
- uses: actions/checkout@v2
- 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 --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./${{ matrix.bots }}/coverage.opencover.xml