-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reenabling tests for the UI projects in CI #1807
Changes from 1 commit
895c569
d2a74c3
887d9e5
9c439f1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,11 +60,17 @@ jobs: | |
6.0.x | ||
7.0.x | ||
- name: Restore UI | ||
sungam3r marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: dotnet restore ./src/HealthChecks.UI/HealthChecks.UI.csproj | ||
run: | | ||
dotnet restore ./src/HealthChecks.UI/HealthChecks.UI.csproj && | ||
dotnet restore ./test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj | ||
- name: Restore UI.Client | ||
run: dotnet restore ./src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj | ||
run: | | ||
dotnet restore ./src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj && | ||
dotnet restore ./test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj | ||
- name: Restore UI.Core | ||
run: dotnet restore ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj | ||
run: | | ||
dotnet restore ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj && | ||
dotnet restore ./test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj | ||
- name: Restore UI.Data | ||
run: dotnet restore ./src/HealthChecks.UI.Data/HealthChecks.UI.Data.csproj | ||
- name: Restore UI.InMemory.Storage | ||
|
@@ -81,11 +87,17 @@ jobs: | |
run: dotnet restore ./src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj | ||
|
||
- name: Check formatting UI | ||
run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI/HealthChecks.UI.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
run: | | ||
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI/HealthChecks.UI.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && | ||
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
- name: Check formatting UI.Client | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The same suggestion for that step - use |
||
run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
run: | | ||
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && | ||
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
- name: Check formatting UI.Core | ||
run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
run: | | ||
dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) && | ||
dotnet format --no-restore --verify-no-changes --severity warn ./test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
- name: Check formatting UI.Data | ||
run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.Data/HealthChecks.UI.Data.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
- name: Check formatting UI.InMemory.Storage | ||
|
@@ -102,13 +114,17 @@ jobs: | |
run: dotnet format --no-restore --verify-no-changes --severity warn ./src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj || (echo "Run 'dotnet format' to fix issues" && exit 1) | ||
|
||
- name: Build UI | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again - |
||
run: dotnet build --no-restore ./src/HealthChecks.UI/HealthChecks.UI.csproj | ||
env: | ||
NODE_OPTIONS: --openssl-legacy-provider | ||
run: | | ||
dotnet build --no-restore ./src/HealthChecks.UI/HealthChecks.UI.csproj && | ||
dotnet build --no-restore ./test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj | ||
- name: Build UI.Client | ||
run: dotnet build --no-restore ./src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj | ||
run: | | ||
dotnet build --no-restore ./src/HealthChecks.UI.Client/HealthChecks.UI.Client.csproj && | ||
dotnet build --no-restore ./test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj | ||
- name: Build UI.Core | ||
run: dotnet build --no-restore ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj | ||
run: | | ||
dotnet build --no-restore ./src/HealthChecks.UI.Core/HealthChecks.UI.Core.csproj && | ||
dotnet build --no-restore ./test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj | ||
- name: Build UI.Data | ||
run: dotnet build --no-restore ./src/HealthChecks.UI.Data/HealthChecks.UI.Data.csproj | ||
- name: Build UI.InMemory.Storage | ||
|
@@ -123,18 +139,40 @@ jobs: | |
run: dotnet build --no-restore ./src/HealthChecks.UI.SqlServer.Storage/HealthChecks.UI.SqlServer.Storage.csproj | ||
- name: Build UI.K8s.Operator | ||
run: dotnet build --no-restore ./src/HealthChecks.UI.K8s.Operator/HealthChecks.UI.K8s.Operator.csproj | ||
#- name: Test | ||
# run: > | ||
# dotnet test | ||
# ./test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj | ||
# --no-restore | ||
# --no-build | ||
# --collect "XPlat Code Coverage" | ||
# --results-directory .coverage | ||
# -- | ||
# DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
#- name: Upload Coverage | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# flags: UI | ||
# directory: .coverage | ||
|
||
- name: Test UI | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And again - one step with name |
||
run: > | ||
dotnet test | ||
./test/HealthChecks.UI.Tests/HealthChecks.UI.Tests.csproj | ||
--no-restore | ||
--no-build | ||
--collect "XPlat Code Coverage" | ||
--results-directory .coverage | ||
-- | ||
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
- name: Test UI.Client | ||
run: > | ||
dotnet test | ||
./test/HealthChecks.UI.Client.Tests/HealthChecks.UI.Client.Tests.csproj | ||
--no-restore | ||
--no-build | ||
--collect "XPlat Code Coverage" | ||
--results-directory .coverage | ||
-- | ||
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
- name: Test UI.Core | ||
run: > | ||
dotnet test | ||
./test/HealthChecks.UI.Core.Tests/HealthChecks.UI.Core.Tests.csproj | ||
--no-restore | ||
--no-build | ||
--collect "XPlat Code Coverage" | ||
--results-directory .coverage | ||
-- | ||
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | ||
|
||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
flags: UI | ||
directory: .coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's join all restore commands into one step with name
Restore
.