Bump System.Text.Json from 8.0.4 to 8.0.5 in /src/libs/SoloX.GeneratorTools.Core.CSharp #93
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 - PR | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.100 | |
- 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 | |
coverage-pr: | |
needs: build-pr | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
test_path: | |
- src/tests/SoloX.GeneratorTools.Core.UTest | |
- src/tests/SoloX.GeneratorTools.Core.CSharp.UTest | |
- src/tests/SoloX.GeneratorTools.Core.CSharp.ITest | |
- src/tools.tests/SoloX.GeneratorTools.Generator.ITest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.100 | |
- name: Install dependencies ${{ matrix.test_path }} | |
run: dotnet restore ${{ matrix.test_path }} | |
- name: Build ${{ matrix.test_path }} | |
run: dotnet build ${{ matrix.test_path }} --configuration Release --no-restore | |
- name: Test Coverage ${{ matrix.test_path }} | |
run: dotnet test ${{ matrix.test_path }} --configuration Release --no-restore --no-build --collect:"XPlat Code Coverage" --settings coverlet.runsettings | |
- name: Moving test results | |
run: mv ${{ matrix.test_path }}/TestResults/**/coverage.cobertura.xml ${{ matrix.test_path }}/TestResults/coverage.cobertura.xml | |
- name: Send to coverals | |
uses: coverallsapp/github-action@v2.2.3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ matrix.test_path }}/TestResults/coverage.cobertura.xml | |
format: cobertura | |
flag-name: test-${{ matrix.test_path }} | |
parallel: true | |
end-coverage-pr: | |
needs: coverage-pr | |
runs-on: ubuntu-latest | |
steps: | |
- name: Finish coverals | |
uses: coverallsapp/github-action@v2.2.3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
parallel-finished: true |