Skip to content

Code cleanup and fix configuration error #67

Code cleanup and fix configuration error

Code cleanup and fix configuration error #67

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Tests
on:
push:
branches: [ "main" ]
paths-ignore:
- '**.md'
pull_request:
branches: [ "main" ]
paths-ignore:
- '**.md'
jobs:
unit-test:
runs-on: ubuntu-latest
name: Unit Tests
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore SimpleCDN.Tests/SimpleCDN.Tests.csproj
- name: Build
run: dotnet build SimpleCDN.Tests/SimpleCDN.Tests.csproj --no-restore
- name: Test
run: dotnet test SimpleCDN.Tests/SimpleCDN.Tests.csproj --no-build --verbosity normal
integration-test:
runs-on: ubuntu-latest
name: Integration Tests
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore dependencies
run: dotnet restore SimpleCDN.Tests.Integration/SimpleCDN.Tests.Integration.csproj
- name: Build
run: dotnet build SimpleCDN.Tests.Integration/SimpleCDN.Tests.Integration.csproj --no-restore
- name: Test
run: dotnet test SimpleCDN.Tests.Integration/SimpleCDN.Tests.Integration.csproj --no-build --verbosity normal