diff --git a/.github/workflows/dotnet-deploy.yml b/.github/workflows/dotnet-deploy.yml index 36ce63b0..068ce7d6 100644 --- a/.github/workflows/dotnet-deploy.yml +++ b/.github/workflows/dotnet-deploy.yml @@ -32,19 +32,19 @@ jobs: - name: Build run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj - name: Test - run: dotnet test --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj - - uses: actions/github-script@v6 - if: failure() - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - let body = "${{ env.build_name }} Workflow Failure \n Build Number: ${{ github.run_number }} \n Build Log: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \n SHA: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) \n"; - github.issues.create({ - owner: context.repo.owner, - repo: context.repo.repo, - title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ", - body: body - }); + run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj +# - uses: actions/github-script@v6 +# if: failure() +# with: +# github-token: ${{secrets.GITHUB_TOKEN}} +# script: | +# let body = "${{ env.build_name }} Workflow Failure \n Build Number: ${{ github.run_number }} \n Build Log: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} \n SHA: [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) \n"; +# github.issues.create({ +# owner: context.repo.owner, +# repo: context.repo.repo, +# title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ", +# body: body +# }); dockerBuildPush: runs-on: ubuntu-latest diff --git a/src/Application/tests/RazorPagesTestSample.Tests/UnitTests/DataAccessLayerTest.cs b/src/Application/tests/RazorPagesTestSample.Tests/UnitTests/DataAccessLayerTest.cs index 414ed328..81b02aa0 100644 --- a/src/Application/tests/RazorPagesTestSample.Tests/UnitTests/DataAccessLayerTest.cs +++ b/src/Application/tests/RazorPagesTestSample.Tests/UnitTests/DataAccessLayerTest.cs @@ -35,7 +35,7 @@ public async Task AddMessageAsync_MessageIsAdded() { using (var db = new AppDbContext(Utilities.TestDbContextOptions())) { - // Arrange + // Arrange var recId = 10; var expectedMessage = new Message() { Id = recId, Text = "Message" };