Update Startup.cs #3
This file contains hidden or 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
# 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: .NET CI | |
env: | |
# Define your environment variables here | |
registryName: v4i27qdighim4mpnpreg.azurecr.io | |
repositoryName: techexcel/dotnetcoreapp | |
dockerFolderPath: /src/Application/src/RazorPagesTestSample | |
tag: github.run_number | |
on: | |
push: | |
branches: [ main ] | |
paths: src/Application/** | |
pull_request: | |
branches: [ main ] | |
paths: src/Application/** | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
- name: Restore dependencies | |
run: dotnet restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj | |
- name: Build | |
run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj | |
- name: Test | |
run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj |