RulesEngine/.github/workflows/dotnetcore-build.yml

38 lines
1.1 KiB
YAML
Raw Normal View History

2020-04-23 00:49:44 -04:00
name: build
2020-04-23 00:47:21 -04:00
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.101
- name: Install minicover
run: dotnet tool install --global minicover --version 3.0.6
2020-04-23 00:47:21 -04:00
- name: Install dependencies
run: dotnet restore src/RulesEngine/RulesEngine.sln
2020-04-23 00:47:21 -04:00
- name: Build
run: dotnet build src/RulesEngine/RulesEngine.sln --configuration Release --no-restore
- name: Instrument
run: minicover instrument
2020-04-23 00:47:21 -04:00
- name: Test
run: dotnet test src/RulesEngine/RulesEngine.sln --no-build --configuration Release --verbosity m
- name: Uninstrument
run: minicover uninstrument
- name: Report
run: minicover report --threshold 80
2020-05-11 07:11:36 -04:00
if: ${{ github.event_name == 'pull_request' }}
- name: Report coveralls
2020-05-11 07:13:55 -04:00
run: minicover coverallsreport --repo-token ${{ secrets.COVERALLS_TOKEN }} --branch master
2020-05-11 07:11:36 -04:00
if: ${{ github.event_name == 'push' }}