Skip to content
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

Update workflow #2

Merged
merged 2 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Build DSIronPython package using msbuild
name: DSIronPython-VS2022Build
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: windows-2022
Expand All @@ -13,7 +13,7 @@ jobs:
- name: Setup nuget
uses: nuget/[email protected]
- name: Setup msbuild
uses: microsoft/[email protected]
uses: microsoft/[email protected].1
- name: Nuget Restore DSIronPython solution
run: nuget restore ${{ github.workspace }}\DSIronPython\DSIronPython.sln
- name: Build DSIronPython with MSBuild
Expand All @@ -28,6 +28,17 @@ jobs:
} else {
Write-Error "python node dll was not found!"
}
- name: Test with the dotnet CLI
run: dotnet test ${{ github.workspace }}\DSIronPython

- name: Run test with the dotnet CLI
run: |
dotnet test ${{ github.workspace }}\DSIronPython --logger trx --results-directory ${{ github.workspace }}\DSIronPython\TestResults
- name: Publish test results
uses: bibipkins/[email protected]
with:
github-token: ${{ github.token }}
results-path: ${{ github.workspace }}/DSIronPython/TestResults/*.trx
- name: Upload build artifact
uses: actions/[email protected]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will this also save PR builds? Do we want that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My intention for uploading package artifact to use it for testing so the retention is only 7 days. I think having artifact from a pr can also be useful for testing.

with:
name: DSIronPython
path: ${{ github.workspace }}\DSIronPython\package_output
retention-days: 7
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ bld/
[Oo]ut/
[Ll]og/
[Ll]ogs/
package_output/

# Visual Studio 2015/2017 cache/options directory
.vs/
Expand Down Expand Up @@ -360,4 +361,4 @@ MigrationBackup/
.ionide/

# Fody - auto-generated XML schema
FodyWeavers.xsd
FodyWeavers.xsd
Loading