Skip to content

Nuget & .Net 9.0 upgrade #35

Nuget & .Net 9.0 upgrade

Nuget & .Net 9.0 upgrade #35

Workflow file for this run

name: Build - PR
on:
pull_request:
branches: [ main ]
jobs:
build-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.101
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-restore --no-build
- name: Test Coverage SoloX.TableModel.UTests
id: coverage-utest
run: |
dotnet test ./src/tests/SoloX.TableModel.UTests --configuration Release --no-restore --no-build --collect:"XPlat Code Coverage" --settings coverlet.runsettings
echo "::set-output name=FILE::$(find ./src/tests/SoloX.TableModel.UTests -name 'coverage.info' -print)"
- name: Send to coverals
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage-utest.outputs.FILE }}
flag-name: coverage-utest
parallel: true
- name: Test Coverage SoloX.TableModel.Server.UTests
id: coverage-utest-server
run: |
dotnet test ./src/tests/SoloX.TableModel.Server.UTests --configuration Release --no-restore --no-build --collect:"XPlat Code Coverage" --settings coverlet.runsettings
echo "::set-output name=FILE::$(find ./src/tests/SoloX.TableModel.Server.UTests -name 'coverage.info' -print)"
- name: Send to coverals
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ${{ steps.coverage-utest-server.outputs.FILE }}
flag-name: coverage-utest-server
parallel: true
- name: Finish coverals
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true