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 build workflow #108

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
30 changes: 0 additions & 30 deletions .github/workflows/PackageManagerClientMSbuild.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build

on:
- push
- pull_request

jobs:
build:
name: Build PackageManagerClient
runs-on: windows-latest
steps:
- name: Checkout Repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
repository: ${{ github.repository }}
path: PackageManagerClient
- name: Setup dotnet
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4.0.0
with:
dotnet-version: '8.0.x'
- name: Build
run: |
dotnet build --configuration Release PackageManagerClient\src\GregClient.sln
- name: Look for PackageManagerClient
run: |
if (Test-Path -Path "${{ github.workspace }}\PackageManagerClient\bin\Release\net8.0\Greg.dll") {
Write-Output "PackageManagerClient exists!"
} else {
Write-Error "PackageManagerClient was not found!"
}
- name: Test
run: |
dotnet test --no-build --configuration Release ${{ github.workspace }}\PackageManagerClient\src\GregClient.sln --logger "trx;LogFileName=results.trx" --results-directory ${{ github.workspace }}\PackageManagerClient\TestResults
- name: Upload test artifact
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: TestResults
path: ${{ github.workspace }}\PackageManagerClient\TestResults
retention-days: 1
25 changes: 25 additions & 0 deletions .github/workflows/publish_test_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Test Report

on:
workflow_run:
workflows:
- Build
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
publish_test_report:
name: Publish Test Report
runs-on: ubuntu-latest
steps:
- uses: dorny/test-reporter@31a54ee7ebcacc03a09ea97a7e5465a47b84aea5 # v1.9.1
with:
artifact: TestResults
name: Test Results
path: '*.trx'
reporter: dotnet-trx
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[![Nuget](https://img.shields.io/nuget/v/Greg?logo=nuget)](https://www.nuget.org/packages/Greg/)

[![PackageManagerClient-VS2022Build](https://github.com/DynamoDS/PackageManagerClient/actions/workflows/PackageManagerClientMSbuild.yml/badge.svg)](https://github.com/DynamoDS/PackageManagerClient/actions/workflows/PackageManagerClientMSbuild.yml)
# Dynamo Package Manager Client

[![Nuget](https://img.shields.io/nuget/v/Greg?logo=nuget)](https://www.nuget.org/packages/Greg/)

# Dynamo Package Manager Client
[![Build](https://github.com/DynamoDS/PackageManagerClient/actions/workflows/build.yml/badge.svg)](https://github.com/DynamoDS/PackageManagerClient/actions/workflows/build.yml)

This repo is the package manager client for the Dynamo Package Manager. Package Manager Client is designed to cover all of the capabilities of the Dynamo Package Manager.

Expand All @@ -27,11 +26,11 @@ This repo is the package manager client for the Dynamo Package Manager. Package

#### Steps to build The Package Manager Client solution:

- From Visual Studio IDE:
* From Visual Studio IDE:

Build the `PackageManagerClient\src\GregClient.sln` solution

- From command line:
* From command line:

```bat
dotnet build --configuration Release src/GregClient.sln
Expand Down
26 changes: 9 additions & 17 deletions pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
version: 0.1.1
env:
- JENKINS_NODE_WIN: "DynamoWinBuild"
- SLACK_QUANTUM_BUILD_CHANNEL : "#dynamo-jenkinsbuild"
- SLACK_QUANTUM_BUILD_CREDENTIAL_ID : "slack-notify-token"
- MAIL_QUANTUM_BUILD_RECIPIENT : "[email protected]"
- SLACK_QUANTUM_BUILD_CHANNEL: "#dynamo-jenkinsbuild"
- SLACK_QUANTUM_BUILD_CREDENTIAL_ID: "slack-notify-token"
- MAIL_QUANTUM_BUILD_RECIPIENT: "[email protected]"
- NUGET_PUBLISH_SOURCE: "https://api.nuget.org/v3/index.json"

check_changelog_updated_on_pr: false
pipeline_os: "Windows"
force_slack_notification : true
force_slack_notification: true
language: csharp
use_garasign: true


schedule:
cron_schedule: "once_a_week"

Expand All @@ -24,12 +23,12 @@ jenkins_creds:
-
type: usernamePassword
credentialsId: local-svc_p_ors
username: GITADSK_USERNAME
username: GITADSK_USERNAME
password: GITADSK_PASSWORD

build:
-
setup_proj_deps : true
setup_proj_deps: true
solution: src\\GregClient.sln
scripts:
- "dotnet build --configuration Release src/GregClient.sln"
Expand Down Expand Up @@ -58,18 +57,11 @@ soc2:
- bin\Release\net8.0

deployment:

-
-
type: sign
files_to_sign:
- "bin\\Release\\net8.0\\greg.dll"
-
type: customized
scripts:
- "pwsh.exe -ExecutionPolicy ByPass -File .\\cicdscripts\\PublishPackage.ps1 -ReleaseBranches master"






- "pwsh.exe -ExecutionPolicy ByPass -File .\\cicdscripts\\PublishPackage.ps1 -ReleaseBranches master"