Skip to content

Commit 203d410

Browse files
Merge pull request #24 from marcelloraffaele/fix-test
Refactor dotnet-deploy.yml and RazorPagesTestSample.Tests.csproj
2 parents 9c34f47 + d1b1ef6 commit 203d410

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/dotnet-deploy.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
- name: Build
3333
run: dotnet build --no-restore ./src/Application/src/RazorPagesTestSample/RazorPagesTestSample.csproj
3434
- name: Test
35-
run: dotnet test --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj
36-
- uses: actions/github-script@v6
37-
if: failure()
38-
with:
39-
github-token: ${{secrets.GITHUB_TOKEN}}
40-
script: |
41-
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";
42-
github.issues.create({
43-
owner: context.repo.owner,
44-
repo: context.repo.repo,
45-
title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ",
46-
body: body
47-
});
35+
run: dotnet test --no-build --verbosity normal ./src/Application/tests/RazorPagesTestSample.Tests/RazorPagesTestSample.Tests.csproj
36+
# - uses: actions/github-script@v6
37+
# if: failure()
38+
# with:
39+
# github-token: ${{secrets.GITHUB_TOKEN}}
40+
# script: |
41+
# 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";
42+
# github.issues.create({
43+
# owner: context.repo.owner,
44+
# repo: context.repo.repo,
45+
# title: "${{ env.build_name }} Workflow ${{ github.run_number }} Failed! ",
46+
# body: body
47+
# });
4848

4949
dockerBuildPush:
5050
runs-on: ubuntu-latest

src/Application/tests/RazorPagesTestSample.Tests/UnitTests/DataAccessLayerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public async Task AddMessageAsync_MessageIsAdded()
3535
{
3636
using (var db = new AppDbContext(Utilities.TestDbContextOptions()))
3737
{
38-
// Arrange
38+
// Arrange
3939
var recId = 10;
4040
var expectedMessage = new Message() { Id = recId, Text = "Message" };
4141

0 commit comments

Comments
 (0)