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

42 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: [ main ]
2020-04-23 00:47:21 -04:00
pull_request:
branches: [ main, develop ]
2020-04-23 00:47:21 -04:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2020-04-23 00:47:21 -04:00
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
2020-04-23 00:47:21 -04:00
with:
dotnet-version: 6.0.x
2020-04-23 00:47:21 -04:00
- name: Install dependencies
run: dotnet restore RulesEngine.sln
2020-04-23 00:47:21 -04:00
- name: Build
run: dotnet build RulesEngine.sln --configuration Release --no-restore
2020-04-23 00:47:21 -04:00
- name: Test
run: dotnet test RulesEngine.sln --collect:"XPlat Code Coverage" --no-build --configuration Release --verbosity m
- name: Generate Report
shell: pwsh
run: ./scripts/generate-coverage-report.ps1
- name: Check Coverage
shell: pwsh
run: ./scripts/check-coverage.ps1 -reportPath coveragereport/Cobertura.xml -threshold 96
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2.2.1
2020-05-11 07:11:36 -04:00
if: ${{ github.event_name == 'push' }}
with:
2022-10-02 10:31:51 -04:00
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coveragereport/lcov.info