-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Build DSIronPython package using msbuild | ||
name: DSIronPython-VS2022Build | ||
on: [push, pull_request, workflow_dispatch] | ||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: DSIronPython | ||
repository: DynamoDS/DSIronPython | ||
- name: Setup nuget | ||
uses: nuget/[email protected] | ||
- name: Setup msbuild | ||
uses: microsoft/[email protected] | ||
- name: Nuget Restore DSIronPython solution | ||
run: nuget restore ${{ github.workspace }}\DSIronPython\DSIronPython.sln | ||
- name: Build DSIronPython with MSBuild | ||
run: | | ||
Write-Output "***Continue with the build, Good luck developer!***" | ||
msbuild ${{ github.workspace }}\DSIronPython\DSIronPython.sln | ||
- name: Look for package | ||
run: | | ||
Write-Output "***Locating iron python package!***" | ||
if (Test-Path -Path "${{ github.workspace }}\DSIronPython\package_output\DSIronPython\extra\DSIronPython.dll") { | ||
Write-Output "python node dll exists!" | ||
} else { | ||
Write-Error "python node dll was not found!" | ||
} | ||
- name: Run test with the dotnet CLI | ||
run: | | ||
dotnet test ${{ github.workspace }}\DSIronPython --logger "trx;LogFileName=results.trx" --results-directory ${{ github.workspace }}\DSIronPython\TestResults | ||
- name: Upload build artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: DSIronPython | ||
path: ${{ github.workspace }}\DSIronPython\package_output | ||
retention-days: 7 | ||
- name: Upload test artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: TestResults | ||
path: ${{ github.workspace }}\DSIronPython\TestResults | ||
retention-days: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Publish Test Report | ||
|
||
on: | ||
workflow_run: | ||
workflows: | ||
- DSIronPython-VS2022Build | ||
types: | ||
- completed | ||
|
||
permissions: | ||
contents: read | ||
actions: read | ||
checks: write | ||
|
||
jobs: | ||
publish_test_report: | ||
name: Publish Test Report | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dorny/[email protected] | ||
with: | ||
artifact: TestResults | ||
name: Test Results | ||
path: '*.trx' | ||
reporter: dotnet-trx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters