From 6a980253aa2c510dcfd07cfa3b19b22e02340d05 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 11 Aug 2023 11:00:47 +0100 Subject: [PATCH 1/2] chore(deps): update dependency xunit.runner.visualstudio to v2.5.0 (#669) | datasource | package | from | to | | ---------- | ------------------------- | ----- | ----- | | nuget | xunit.runner.visualstudio | 2.4.5 | 2.5.0 | Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Calvin Wilkinson (Admin) <105235056+KinsonDigitalAdmin@users.noreply.github.com> --- Testing/VelaptorTests/VelaptorTests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Testing/VelaptorTests/VelaptorTests.csproj b/Testing/VelaptorTests/VelaptorTests.csproj index 2db7b1af4..6c751580a 100644 --- a/Testing/VelaptorTests/VelaptorTests.csproj +++ b/Testing/VelaptorTests/VelaptorTests.csproj @@ -135,7 +135,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive From c3622721971cf7f0c6a9feee4001210676239b74 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 14 Aug 2023 17:29:41 +0100 Subject: [PATCH 2/2] chore(deps): update dependency coverlet.msbuild to v6 (#683) * chore(deps): update dependency coverlet.msbuild to v6 | datasource | package | from | to | | ---------- | ---------------- | ----- | ----- | | nuget | coverlet.msbuild | 3.2.0 | 6.0.0 | * ci: update reusable workflow versions * ci: update workflow to accommodate changes from v12 * ci: rename workflow --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Calvin Wilkinson Co-authored-by: Calvin Wilkinson (Admin) <105235056+KinsonDigitalAdmin@users.noreply.github.com> --- .../workflows/add-new-issue-to-project.yml | 21 ---------- .github/workflows/add-new-item-to-project.yml | 41 +++++++++++++++++++ .github/workflows/build-status-check.yml | 2 +- .github/workflows/prepare-release.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/unit-test-status-check.yml | 2 +- Testing/VelaptorTests/VelaptorTests.csproj | 2 +- Velaptor.sln | 2 +- 8 files changed, 47 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/add-new-issue-to-project.yml create mode 100644 .github/workflows/add-new-item-to-project.yml diff --git a/.github/workflows/add-new-issue-to-project.yml b/.github/workflows/add-new-issue-to-project.yml deleted file mode 100644 index cd2644e04..000000000 --- a/.github/workflows/add-new-issue-to-project.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: 🤖Add New Issue To Project - - -on: - issues: - types: opened - pull_request: - types: opened - branches: [main, preview] - - -jobs: - add_new_issue_to_project: - name: Add New Issue - uses: KinsonDigital/Infrastructure/.github/workflows/add-issue-to-project.yml@v10.0.2 - with: - org-name: "${{ vars.ORGANIZATION_NAME }}" - org-project-name: "${{ vars.ORG_PROJECT_NAME }}" - project-name: "${{ vars.PROJECT_NAME }}" - secrets: - cicd-pat: ${{ secrets.CICD_TOKEN }} diff --git a/.github/workflows/add-new-item-to-project.yml b/.github/workflows/add-new-item-to-project.yml new file mode 100644 index 000000000..4aeb8b435 --- /dev/null +++ b/.github/workflows/add-new-item-to-project.yml @@ -0,0 +1,41 @@ +name: 🤖Add New Issue To Project + + +on: + issues: + types: opened + pull_request: + types: opened + branches: [main, preview] + + +jobs: + item_number: + name: Get Item Number + runs-on: ubuntu-latest + outputs: + item-number: ${{ steps.get-item-number.outputs.item-number }} + steps: + - name: Get Item Number + id: get-item-number + run: | + $eventName = "${{ github.event_name }}"; + $itemNumber = $eventName -eq "issues" ? "${{ github.event.issue.number }}" : "${{ github.event.pull_request.number }}"; + $itemType = $eventName -eq "issues" ? "issue" : "pull request"; + + Write-Host "::notice::Invoked by $itemType '$itemNumber'"; + + "item-number=$itemNumber" >> $env:GITHUB_OUTPUT; + + + add_new_issue_to_project: + name: Add New Issue + needs: item_number + uses: KinsonDigital/Infrastructure/.github/workflows/add-item-to-project.yml@v12.0.0 + with: + org-name: "${{ vars.ORGANIZATION_NAME }}" + org-project-name: "${{ vars.ORG_PROJECT_NAME }}" + repo-name: "${{ vars.PROJECT_NAME }}" + item-number: "${{ needs.item_number.outputs.item-number }}" + secrets: + cicd-pat: ${{ secrets.CICD_TOKEN }} diff --git a/.github/workflows/build-status-check.yml b/.github/workflows/build-status-check.yml index d2c32a69a..81bd65779 100644 --- a/.github/workflows/build-status-check.yml +++ b/.github/workflows/build-status-check.yml @@ -15,7 +15,7 @@ on: jobs: build_status_check: name: ${{ vars.PROJECT_NAME }} Build Status Check - uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v10.0.2 + uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v12.0.0 with: project-name: "${{ vars.PROJECT_NAME }}" build-config: Debug diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index a9c0e7f24..e41eef21d 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -74,7 +74,7 @@ jobs: prepare_release: name: Prepare ${{ inputs.release-type }} Release Of ${{ vars.PROJECT_NAME }} needs: print_validate_workflow - uses: KinsonDigital/Infrastructure/.github/workflows/prepare-release.yml@v10.0.2 + uses: KinsonDigital/Infrastructure/.github/workflows/prepare-release.yml@v12.0.0 with: project-name: "${{ vars.PROJECT_NAME }}" release-type: "${{ inputs.release-type }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 75d36d095..94c406cc7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,7 @@ jobs: run_release: name: Performing ${{ inputs.release-type }} Release of ${{ vars.PROJECT_NAME }} (${{ inputs.release-type == 'Production' && 'Release' || 'Debug' }}) needs: determine_release_notes_path - uses: KinsonDigital/Infrastructure/.github/workflows/dotnet-lib-release.yml@v10.0.2 + uses: KinsonDigital/Infrastructure/.github/workflows/dotnet-lib-release.yml@v12.0.0 with: project-name: "${{ vars.PROJECT_NAME}}" release-type: "${{ inputs.release-type }}" diff --git a/.github/workflows/unit-test-status-check.yml b/.github/workflows/unit-test-status-check.yml index 8672f67a1..71103d0e6 100644 --- a/.github/workflows/unit-test-status-check.yml +++ b/.github/workflows/unit-test-status-check.yml @@ -16,7 +16,7 @@ on: jobs: run_tests: name: ${{ vars.PROJECT_NAME }} Test Status Check - uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v10.0.2 + uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v12.0.0 with: project-name: "${{ vars.PROJECT_NAME }}Tests" build-config: Debug diff --git a/Testing/VelaptorTests/VelaptorTests.csproj b/Testing/VelaptorTests/VelaptorTests.csproj index 6c751580a..1676c5122 100644 --- a/Testing/VelaptorTests/VelaptorTests.csproj +++ b/Testing/VelaptorTests/VelaptorTests.csproj @@ -116,7 +116,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Velaptor.sln b/Velaptor.sln index e79ba5578..068056bf2 100644 --- a/Velaptor.sln +++ b/Velaptor.sln @@ -29,7 +29,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VelaptorTests", "Testing\Ve EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{CE2DE8AE-0037-4159-AE95-14D261BF9122}" ProjectSection(SolutionItems) = preProject - .github\workflows\add-new-issue-to-project.yml = .github\workflows\add-new-issue-to-project.yml .github\workflows\build-status-check.yml = .github\workflows\build-status-check.yml .github\workflows\prepare-release.yml = .github\workflows\prepare-release.yml .github\workflows\release.yml = .github\workflows\release.yml @@ -39,6 +38,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Workflows", "Workflows", "{ .github\workflows\sync-status-check.yml = .github\workflows\sync-status-check.yml .github\workflows\triage-issue.yml = .github\workflows\triage-issue.yml .github\workflows\unit-test-status-check.yml = .github\workflows\unit-test-status-check.yml + .github\workflows\add-new-item-to-project.yml = .github\workflows\add-new-item-to-project.yml EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MeasureTextPerf", "Performance\MeasureTextPerf\MeasureTextPerf.csproj", "{8690A40A-D3B2-488B-92B6-5771C21010E0}"