Skip to content

Develop -> Main

Develop -> Main #15

name: Run Unit Tests
on:
pull_request:
branches: [ development, main ]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test -c Release --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- uses: samspills/[email protected]
if: github.event_name == 'pull_request' && github.event.action == 'opened'
with:
repo-token: '${{secrets.GITHUB_TOKEN}}'