name: Build and Test Library

on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-18.04, windows-2019]
    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v1
      - name: Setup .NET Core
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: 2.2.207
      - name: Build with dotnet
        run: dotnet build --configuration Release
        env:
          DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

  test:
    strategy:
      matrix:
        os: [ubuntu-18.04, windows-2019]
    runs-on: ${{ matrix.os }}
    needs: build

    steps:
      - uses: actions/checkout@v1
      - name: Setup .NET Core
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: 2.2.207
      - name: Test Solution
        run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./coverage.xml /p:Exclude=\"[Azuria.Test*]*\"
        env:
          DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
      - name: Upload code coverage report to Codecov
        uses: codecov/codecov-action@v1.0.5
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          name: ${{ matrix.os }}
          yml: ./codecov.yml
          file: ./Azuria.Test/coverage.xml

name: Build and Test Library

on: [push, pull_request]

jobs:
  build:
    strategy:
      matrix:
        os: [ubuntu-18.04, windows-2019]
    runs-on: ${{ matrix.os }}

    steps:
      - uses: actions/checkout@v1
      - name: Setup .NET Core
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: 2.2.207
      - name: Build with dotnet
        run: dotnet build --configuration Release
        env:
          DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true

  test:
    strategy:
      matrix:
        os: [ubuntu-18.04, windows-2019]
    runs-on: ${{ matrix.os }}
    needs: build

    steps:
      - uses: actions/checkout@v1
      - name: Setup .NET Core
        uses: actions/setup-dotnet@v1
        with:
          dotnet-version: 2.2.207
      - name: Test Solution
        run: dotnet test /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=./coverage.xml /p:Include=\"[Azuria]*\"
        env:
          DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
      - name: Upload code coverage report to Codecov
        uses: codecov/codecov-action@v1.0.5
        with:
          token: ${{ secrets.CODECOV_TOKEN }}
          name: ${{ matrix.os }}
          yml: ./codecov.yml
          file: ./Azuria.Test/coverage.xml

Change filter on coverage report in workflow
Change filter on coverage report in workflow
