From a72c809c767cf8edbcaf5014da2355e991a71572 Mon Sep 17 00:00:00 2001 From: Charlie Poole Date: Thu, 10 Oct 2024 08:48:55 -0700 Subject: [PATCH 1/2] WIP --- .github/workflows/testcentric-gui-ci.yml | 68 ++++++++++++++++++++++++ net462-pluggable-agent.sln | 9 ++++ 2 files changed, 77 insertions(+) create mode 100644 .github/workflows/testcentric-gui-ci.yml diff --git a/.github/workflows/testcentric-gui-ci.yml b/.github/workflows/testcentric-gui-ci.yml new file mode 100644 index 0000000..30d253f --- /dev/null +++ b/.github/workflows/testcentric-gui-ci.yml @@ -0,0 +1,68 @@ +name: TestCentric.Net462Agent.CI + +on: + workflow_dispatch: + pull_request: + push: + paths-ignore: + - "*.txt" + - "*.md" + +env: + DOTNET_NOLOGO: true # Disable the .NET logo + DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry + +jobs: + ContinuousIntegration: + name: Continuous Integration + runs-on: windows-latest + + env: + TESTCENTRIC_MYGET_API_KEY: ${{ secrets.TESTCENTRIC_MYGET_API_KEY }} + TESTCENTRIC_NUGET_API_KEY: ${{ secrets.TESTCENTRIC_NUGET_API_KEY }} + TESTCENTRIC_CHOCO_API_KEY: ${{ secrets.TESTCENTRIC_CHOCO_API_KEY }} + GITHUB_ACCESS_TOKEN: ${{ secrets.TESTCENTRIC_GITHUB_ACCESS_TOKEN }} + + steps: + - name: ⤵️ Checkout Source + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: 🔧 Install dotnet tools + run: dotnet tool restore + + - name: 🍰 Run cake + env: + TESTCENTRIC_MYGET_API_KEY: ${{ secrets.TESTCENTRIC_MYGET_API_KEY }} + TESTCENTRIC_NUGET_API_KEY: ${{ secrets.TESTCENTRIC_NUGET_API_KEY }} + TESTCENTRIC_CHOCO_API_KEY: ${{ secrets.TESTCENTRIC_CHOCO_API_KEY }} + GITHUB_ACCESS_TOKEN: ${{ secrets.TESTCENTRIC_GITHUB_ACCESS_TOKEN }} + + # If you need to get more verbose logging, add the following to the dotnet-cake above: --verbosity=diagnostic + run: dotnet cake --target=ContinuousIntegration --configuration=Release + + - name: 🪵 Upload build logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: Upload Console Logs + # This path is defined in build-settings.cake + path: "build-results/*.binlog" + # if-no-files-found: error + + - name: 🪵 Upload InternalTrace logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: InternalTraceLogs + # This path is defined in build-settings.cake + path: "*.log" + # if-no-files-found: error + + - name: 💾 Upload test results + uses: actions/upload-artifact@v4 + if: always() + with: + name: "Test Results" + path: test-results diff --git a/net462-pluggable-agent.sln b/net462-pluggable-agent.sln index fc950d7..8b51c3d 100644 --- a/net462-pluggable-agent.sln +++ b/net462-pluggable-agent.sln @@ -40,6 +40,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "choco", "choco", "{DB1D27AE EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "mock-assembly-x86", "src\mock-assembly-x86\mock-assembly-x86.csproj", "{8ED7E1A4-8059-4159-B378-52E5C8B7F874}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{52F11D26-D2A8-48AC-97C9-D4C8087AC39B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{96585370-2B84-40FA-8C14-C605FD93B571}" + ProjectSection(SolutionItems) = preProject + .github\workflows\testcentric-gui-ci.yml = .github\workflows\testcentric-gui-ci.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -129,6 +136,8 @@ Global GlobalSection(NestedProjects) = preSolution {B6516F48-F091-4BB4-A76E-F9C501EF1059} = {49BC1DFB-828F-49F4-B2B4-752AB470481D} {DB1D27AE-4967-466A-88CF-2213452FBE5D} = {49BC1DFB-828F-49F4-B2B4-752AB470481D} + {52F11D26-D2A8-48AC-97C9-D4C8087AC39B} = {49BC1DFB-828F-49F4-B2B4-752AB470481D} + {96585370-2B84-40FA-8C14-C605FD93B571} = {52F11D26-D2A8-48AC-97C9-D4C8087AC39B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {CAB7BD1E-1034-47CD-AA8E-FD4AC034193B} From c3441531c0a4eeaf9bfd98a0eebfd8d8337c4ed4 Mon Sep 17 00:00:00 2001 From: Charlie Poole Date: Thu, 10 Oct 2024 09:46:03 -0700 Subject: [PATCH 2/2] Add Github Workflow action for CI build --- .github/workflows/testcentric-gui-ci.yml | 68 ++++++++++++++++++++++++ net462-pluggable-agent.sln | 9 ++++ 2 files changed, 77 insertions(+) create mode 100644 .github/workflows/testcentric-gui-ci.yml diff --git a/.github/workflows/testcentric-gui-ci.yml b/.github/workflows/testcentric-gui-ci.yml new file mode 100644 index 0000000..30d253f --- /dev/null +++ b/.github/workflows/testcentric-gui-ci.yml @@ -0,0 +1,68 @@ +name: TestCentric.Net462Agent.CI + +on: + workflow_dispatch: + pull_request: + push: + paths-ignore: + - "*.txt" + - "*.md" + +env: + DOTNET_NOLOGO: true # Disable the .NET logo + DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry + +jobs: + ContinuousIntegration: + name: Continuous Integration + runs-on: windows-latest + + env: + TESTCENTRIC_MYGET_API_KEY: ${{ secrets.TESTCENTRIC_MYGET_API_KEY }} + TESTCENTRIC_NUGET_API_KEY: ${{ secrets.TESTCENTRIC_NUGET_API_KEY }} + TESTCENTRIC_CHOCO_API_KEY: ${{ secrets.TESTCENTRIC_CHOCO_API_KEY }} + GITHUB_ACCESS_TOKEN: ${{ secrets.TESTCENTRIC_GITHUB_ACCESS_TOKEN }} + + steps: + - name: ⤵️ Checkout Source + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: 🔧 Install dotnet tools + run: dotnet tool restore + + - name: 🍰 Run cake + env: + TESTCENTRIC_MYGET_API_KEY: ${{ secrets.TESTCENTRIC_MYGET_API_KEY }} + TESTCENTRIC_NUGET_API_KEY: ${{ secrets.TESTCENTRIC_NUGET_API_KEY }} + TESTCENTRIC_CHOCO_API_KEY: ${{ secrets.TESTCENTRIC_CHOCO_API_KEY }} + GITHUB_ACCESS_TOKEN: ${{ secrets.TESTCENTRIC_GITHUB_ACCESS_TOKEN }} + + # If you need to get more verbose logging, add the following to the dotnet-cake above: --verbosity=diagnostic + run: dotnet cake --target=ContinuousIntegration --configuration=Release + + - name: 🪵 Upload build logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: Upload Console Logs + # This path is defined in build-settings.cake + path: "build-results/*.binlog" + # if-no-files-found: error + + - name: 🪵 Upload InternalTrace logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: InternalTraceLogs + # This path is defined in build-settings.cake + path: "*.log" + # if-no-files-found: error + + - name: 💾 Upload test results + uses: actions/upload-artifact@v4 + if: always() + with: + name: "Test Results" + path: test-results diff --git a/net462-pluggable-agent.sln b/net462-pluggable-agent.sln index fc950d7..8b51c3d 100644 --- a/net462-pluggable-agent.sln +++ b/net462-pluggable-agent.sln @@ -40,6 +40,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "choco", "choco", "{DB1D27AE EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "mock-assembly-x86", "src\mock-assembly-x86\mock-assembly-x86.csproj", "{8ED7E1A4-8059-4159-B378-52E5C8B7F874}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{52F11D26-D2A8-48AC-97C9-D4C8087AC39B}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{96585370-2B84-40FA-8C14-C605FD93B571}" + ProjectSection(SolutionItems) = preProject + .github\workflows\testcentric-gui-ci.yml = .github\workflows\testcentric-gui-ci.yml + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -129,6 +136,8 @@ Global GlobalSection(NestedProjects) = preSolution {B6516F48-F091-4BB4-A76E-F9C501EF1059} = {49BC1DFB-828F-49F4-B2B4-752AB470481D} {DB1D27AE-4967-466A-88CF-2213452FBE5D} = {49BC1DFB-828F-49F4-B2B4-752AB470481D} + {52F11D26-D2A8-48AC-97C9-D4C8087AC39B} = {49BC1DFB-828F-49F4-B2B4-752AB470481D} + {96585370-2B84-40FA-8C14-C605FD93B571} = {52F11D26-D2A8-48AC-97C9-D4C8087AC39B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {CAB7BD1E-1034-47CD-AA8E-FD4AC034193B}