Skip to content

Commit f4ea349

Browse files
[~] Skip unit tests on install but do unit test separately
1 parent 58ada5b commit f4ea349

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/test-install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Setup dotnet
3030
uses: actions/setup-dotnet@v4
3131
- name: exec dotnet test
32-
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator/roles/tests-unit/files/FWO.Test && dotnet restore && dotnet build && dotnet test --filter "Name=HtmlToPdfTest"
32+
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator/roles/tests-unit/files/FWO.Test && dotnet restore && dotnet build && dotnet test
3333

3434
test_ubuntu_latest:
3535
name: test build on ${{ matrix.os }}
@@ -42,4 +42,4 @@ jobs:
4242
steps:
4343
- uses: actions/checkout@v4
4444
- name: do test install in case of merged pull request
45-
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator && ansible-playbook -e force_install=true site.yml -K
45+
run: cd /home/runner/work/firewall-orchestrator/firewall-orchestrator && ansible-playbook -e force_install=true site.yml -K --skip-tags unittests

roles/tests-unit/files/FWO.Test/HtmlToPdfTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using PuppeteerSharp.BrowserData;
77
using FWO.Report;
88
using FWO.Report.Data;
9-
using System.Diagnostics;
109

1110
namespace FWO.Test
1211
{

0 commit comments

Comments
 (0)