Skip to content

feature: Improvements and bumps #39

feature: Improvements and bumps

feature: Improvements and bumps #39

name: Build and Test
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.302
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --collect:"XPlat Code Coverage" --no-restore --verbosity normal
- name: Moving test coverage result to root folder
run: |
mv Rx.Http.Tests/TestResults/**/coverage.cobertura.xml ./
- name: Run codacy-coverage-reporter
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: coverage.cobertura.xml