From 54f73e6b55ada034276d2fdd7ff847a8cac7f4a9 Mon Sep 17 00:00:00 2001 From: ENikS Date: Fri, 10 Mar 2023 08:13:15 -0800 Subject: [PATCH] Updating regression tests --- .github/gitversion.yml | 1 - .github/workflows/cd-flow.yml | 57 +++-------------------------------- appveyor.yml | 8 ++--- 3 files changed, 9 insertions(+), 57 deletions(-) delete mode 100644 .github/gitversion.yml diff --git a/.github/gitversion.yml b/.github/gitversion.yml deleted file mode 100644 index c1a0dc7..0000000 --- a/.github/gitversion.yml +++ /dev/null @@ -1 +0,0 @@ -mode: ContinuousDeployment \ No newline at end of file diff --git a/.github/workflows/cd-flow.yml b/.github/workflows/cd-flow.yml index a2d063d..35a7ac2 100644 --- a/.github/workflows/cd-flow.yml +++ b/.github/workflows/cd-flow.yml @@ -5,56 +5,9 @@ on: branches: - 'release/**' - 'prototype/**' + +jobs: -permissions: - packages: write - -jobs: - - build: - runs-on: windows-latest - env: - DOTNET_NOLOGO: '1' - DOTNET_CLI_TELEMETRY_OPTOUT: '1' - PackageOutputPath: '${{ github.workspace }}\package' - - steps: - - name: Checkout Configuration - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: GitVersion - run: | - choco install gitversion.portable -pre -y --no-progress - gitversion /l console /output buildserver /config .github\gitversion.yml - - # - name: Setup .NET Core SDK - # uses: actions/setup-dotnet@v3.0.3 - # with: - # dotnet-version: '8.0' - - - name: Build - env: - VersionMajor: '${{ env.GitVersion_Major }}' - VersionMinor: '${{ env.GitVersion_Minor }}' - VersionPatch: '${{ env.GitVersion_Patch }}' - Version: '${{ env.GitVersion_MajorMinorPatch }}' - FileVersion: '${{ env.GitVersion_AssemblySemFileVer }}' - PackageVersion: '${{ env.GitVersion_SemVer }}' - AssemblyVersion: '${{ env.GitVersion_AssemblySemVer }}' - InformationalVersion: '${{ env.GitVersion_InformationalVersion }}' - run: | - dotnet nuget add source "https://nuget.pkg.github.com/unitycontainer/index.json" -n github -u unitycontainer -p ${{secrets.GITHUB_TOKEN}} --store-password-in-clear-text - dotnet msbuild -property:Configuration=Release -verbosity:m -restore:True ${{ github.workspace }}\package.sln - - - name: Test - run: | - dotnet test --no-restore --no-build --configuration Release ${{ github.workspace }}\package.sln - - # - name: Publish Local Package - # run: | - # dotnet nuget push '${{ env.PackageOutputPath }}\*' --skip-duplicate --source github - - - name: Label Fixed Issues - uses: gh-bot/fix-labeler@master + build-package-flow: + uses: unitycontainer/.github/.github/workflows/build-package-flow.yml@main + secrets: inherit diff --git a/appveyor.yml b/appveyor.yml index 9484331..50ee26e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,10 +1,10 @@ image: Visual Studio 2022 configuration: Release -# branches: -# only: -# - main -# - master +branches: + only: + - main + - master install: - choco install gitversion.portable -pre -y