Skip to content

Commit 17272c7

Browse files
authored
DYN-7152 Update build dynamo workflow (#15410)
1 parent bf5df2b commit 17272c7

File tree

4 files changed

+10
-48
lines changed

4 files changed

+10
-48
lines changed

.github/workflows/build_dynamo_all.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Build DynamoAll.sln with .NET 8.0
2-
name: Build DynamoAll.sln net8.0
1+
name: Build DynamoAll.sln
32

43
on:
54
push:
@@ -8,7 +7,8 @@ on:
87
pull_request:
98

109
jobs:
11-
build:
10+
build_and_analyze:
11+
name: Build and Analyze
1212
runs-on: windows-latest
1313
steps:
1414
- name: Checkout Dynamo Repo
@@ -29,8 +29,7 @@ jobs:
2929
dotnet restore ${{ github.workspace }}\Dynamo\src\Dynamo.All.sln /p:Configuration=Release --runtime=win-x64
3030
- name: Build Dynamo with MSBuild for Windows
3131
run: |
32-
Write-Output "***Continue with the build, Good luck developer!***"
33-
msbuild ${{ github.workspace }}\Dynamo\src\Dynamo.All.sln /p:Configuration=Release
32+
msbuild ${{ github.workspace }}\Dynamo\src\Dynamo.All.sln /p:Configuration=Release /warnAsError:RS0016,RS0017 /p:PublicApiAnalyzers=true
3433
- name: Look for DynamoCLI.exe
3534
run: |
3635
Write-Output "***Locating DynamoCLI.exe!***"

.github/workflows/dynamo_api_break.yml

-37
This file was deleted.

.github/workflows/ui_smoke_tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: UI Smoke Tests
33
on:
44
workflow_run:
55
workflows:
6-
- Build DynamoAll.sln net8.0
6+
- Build DynamoAll.sln
77
types:
88
- completed
99

@@ -13,6 +13,7 @@ env:
1313
WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }}
1414
WORKFLOW_RUN_NAME: ${{ github.event.workflow_run.name }}
1515
WORKFLOW_RUN_HTML_URL: ${{ github.event.workflow_run.html_url }}
16+
CHECK_NAME: UI Smoke Tests
1617

1718
jobs:
1819
ui_smoke_tests:
@@ -49,7 +50,6 @@ jobs:
4950
- name: Set Run Details
5051
run: |
5152
"PR_NUMBER=$(Get-Content -Path ${{ github.workspace }}\pr\pr_number.txt)" | Out-File -FilePath $env:GITHUB_ENV -Append
52-
"CHECK_NAME=$("UI Smoke Tests", $($env:WORKFLOW_RUN_NAME -Split " ")[-1] -Join " - ")" | Out-File -FilePath $env:GITHUB_ENV -Append
5353
- name: Run Tests
5454
shell: cmd
5555
run: .\utils\run_tests.bat ${{ secrets.SMARTBEAR_ACCESS_KEY }} Dynamo\Dynamo.pjs DynamoSandbox SmokeTests ${{ github.workspace }}\build
@@ -84,7 +84,7 @@ jobs:
8484
id: create_comment
8585
run: |
8686
$pr_comment=@"
87-
## UI Smoke Tests
87+
## $env:CHECK_NAME
8888
Test: **${{ steps.test_report.outputs.conclusion }}**. ${{ steps.test_report.outputs.passed }} passed, ${{ steps.test_report.outputs.failed }} failed.
8989
[TestComplete Test Result]($(Get-Content -Path ${{ github.workspace }}\reports\result.txt))
9090
Workflow Run: [${{ github.workflow }}](${{ format('{0}/{1}/actions/runs/{2}', github.server_url, github.repository, github.run_id) }})
@@ -98,7 +98,7 @@ jobs:
9898
with:
9999
issue-number: ${{ env.PR_NUMBER }}
100100
comment-author: github-actions[bot]
101-
body-includes: UI Smoke Tests
101+
body-includes: ${{ env.CHECK_NAME }}
102102
direction: last
103103
- name: Create comment
104104
if: env.PR_NUMBER != '' && steps.find_comment.outputs.comment-id == ''

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Dynamo
22

3-
[![Build DynamoAll.sln net8.0](https://github.com/DynamoDS/Dynamo/actions/workflows/build_dynamo_all.yml/badge.svg)](https://github.com/DynamoDS/Dynamo/actions/workflows/build_dynamo_all.yml)
4-
[![Build DynamoCore.sln](https://github.com/DynamoDS/Dynamo/actions/workflows/build_dynamo_core_windows.yml/badge.svg)](https://github.com/DynamoDS/Dynamo/actions/workflows/build_dynamo_core.yml)
3+
[![Build DynamoAll.sln](https://github.com/DynamoDS/Dynamo/actions/workflows/build_dynamo_all.yml/badge.svg)](https://github.com/DynamoDS/Dynamo/actions/workflows/build_dynamo_all.yml)
4+
[![Build DynamoCore.sln](https://github.com/DynamoDS/Dynamo/actions/workflows/build_dynamo_core.yml/badge.svg)](https://github.com/DynamoDS/Dynamo/actions/workflows/build_dynamo_core.yml)
55

66
[![DynamoCoreRuntime](https://img.shields.io/github/v/release/DynamoDS/Dynamo?logo=github&label=DynamoCoreRuntime)](https://github.com/DynamoDS/Dynamo/releases/latest)
77
[![Nuget](https://img.shields.io/nuget/v/DynamoVisualProgramming.Core?logo=nuget)](https://www.nuget.org/packages/DynamoVisualProgramming.Core)

0 commit comments

Comments
 (0)