Skip to content

Commit

Permalink
Merge pull request #33 from TestCentric/shared-workflow
Browse files Browse the repository at this point in the history
Use shared workflow
  • Loading branch information
CharliePoole authored Oct 11, 2024
2 parents 2c55c34 + bce22f8 commit df3f259
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 69 deletions.
15 changes: 0 additions & 15 deletions .github/dependabot.yml

This file was deleted.

56 changes: 2 additions & 54 deletions .github/workflows/testcentric-internal-trace.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,60 +4,8 @@ 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: 🍰 Continuous Integration

# 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
uses: TestCentric/TestCentric.WorkFlows/.github/workflows/testcentric-ci.yml@main
secrets: inherit
12 changes: 12 additions & 0 deletions TestCentric.InternalTrace.sln
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestCentric.InternalTrace.T
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestCentric.InternalTrace", "src\TestCentric.InternalTrace\TestCentric.InternalTrace.csproj", "{CCDDDBFF-E8C8-45B6-9261-BF59564AD638}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{2F9E8A83-4492-4372-86D5-B8EDF89A7996}"
ProjectSection(SolutionItems) = preProject
.github\workflows\testcentric-internal-trace.ci.yml = .github\workflows\testcentric-internal-trace.ci.yml
.github\workflows\testcentric-ci.yml = .github\workflows\testcentric-ci.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{545E402D-D8F6-4BB3-8056-C438C996F694}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -40,6 +48,10 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{2F9E8A83-4492-4372-86D5-B8EDF89A7996} = {545E402D-D8F6-4BB3-8056-C438C996F694}
{545E402D-D8F6-4BB3-8056-C438C996F694} = {EF67D721-9373-44AC-96DA-36EEDE3D6C93}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {7BCCC10E-D87B-4D6F-B514-D40556B2C736}
EndGlobalSection
Expand Down

0 comments on commit df3f259

Please sign in to comment.