Change version to 2.0.8-preview.1 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: continuous integration | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '3.1.x' | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build Decor | |
run: dotnet build ./Decor/Decor.csproj --configuration Release --no-restore | |
- name: Build Decor.Extensions.Microsoft.DependencyInjection | |
run: dotnet build ./Decor.Extensions.Microsoft.DependencyInjection/Decor.Extensions.Microsoft.DependencyInjection.csproj --configuration Release --no-restore | |
- name: Test and generate coverage report | |
run: | | |
cd ./Decor.UnitTests/ | |
dotnet build --framework netcoreapp30 | |
dotnet test --no-build --framework netcoreapp30 /p:CollectCoverage=true /p:CoverletOutput=TestResults/ /p:CoverletOutputFormat=opencover | |
cd ./TestResults/ | |
mv ./coverage.netcoreapp30.opencover.xml ./opencover.xml | |
- name: Publish coverage report to Codacity | |
uses: codacy/codacy-coverage-reporter-action@master | |
with: | |
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} |