Fixed build #11
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 and Test | |
on: [ push, pull_request ] | |
env: | |
IS_CI_BUILD: 'true' | |
SOLUTION_PATH: 'src/SaaStack.sln' | |
TESTINGONLY_BUILD_CONFIGURATION: 'Release' | |
DEPLOY_BUILD_CONFIGURATION: 'ReleaseForDeploy' | |
jobs: | |
build-test: | |
runs-on: windows-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore "${{env.SOLUTION_PATH}}" | |
- name: Build for Deploy | |
run: dotnet build "${{env.SOLUTION_PATH}}" --no-restore --configuration ${{env.DEPLOY_BUILD_CONFIGURATION}} | |
- name: Build for Testing | |
run: dotnet build "${{env.SOLUTION_PATH}}" --no-restore --configuration ${{env.TESTINGONLY_BUILD_CONFIGURATION}} | |
- name: Unit Test | |
run: dotnet test --filter Category=Unit "${{env.SOLUTION_PATH}}" --no-build --verbosity normal | |
- name: Integration Test | |
run: dotnet test --filter Category=Integration "${{env.SOLUTION_PATH}}" --no-build --verbosity normal |