Fix log message #176
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: Build | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
DOTNET_NOLOGO: true | |
steps: | |
- name: Get the sources | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
3.1.x | |
- name: Cache Cake Tools | |
uses: actions/cache@v3 | |
with: | |
path: tools | |
key: ${{ runner.os }}-${{ hashFiles('build/**') }} | |
- name: Cache Nugets | |
uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Install report generator | |
run: dotnet tool install dotnet-reportgenerator-globaltool --global | |
shell: powershell | |
- name: Install coveralls.net | |
run: dotnet tool install --global coveralls.net --version 4.0.1 | |
shell: powershell | |
- name: Run Cake script | |
run: ./build.ps1 --target GitHub | |
shell: powershell | |
env: | |
NUGET_URL: https://api.nuget.org/v3/index.json | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }} | |
- name: Upload binaries | |
uses: actions/upload-artifact@v3 | |
if: success() || failure() | |
continue-on-error: true | |
with: | |
name: binaries | |
path: artifacts/bin | |
- name: Upload test reports | |
uses: actions/upload-artifact@v3 | |
if: success() || failure() | |
continue-on-error: true | |
with: | |
name: test-reports | |
path: artifacts/test-reports | |
- name: Report tests | |
uses: dorny/test-reporter@v1 | |
continue-on-error: true | |
if: success() || failure() | |
with: | |
path: "artifacts/test-reports/**/*.trx" | |
name: tests | |
reporter: dotnet-trx | |
- name: Upload to coveralls | |
run: csmacnz.coveralls --reportgenerator -i ./artifacts/test-reports/generated --repoToken ${{ secrets.COVERALLS_TOKEN }} --commitId ${{ github.sha }} --commitBranch "${{ github.ref }}" --commitAuthor "${{ github.actor }}" --jobId ${{ github.run_number }} | |
shell: powershell |