-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete build and test actions, update workflow with new build and tes…
…t steps. - Removed old build and test actions - Added new build and test steps in the workflow
- Loading branch information
1 parent
1c0b29b
commit 5d9c926
Showing
3 changed files
with
64 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,16 +36,65 @@ jobs: | |
playground: | ||
- 'playground/**' | ||
- name: build | ||
if: ${{ steps.change_detection.outputs.changes != '[]' }} | ||
uses: ./.github/actions/build | ||
- name: tools - dotnet - install | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: '8.x' | ||
|
||
- name: tools - gitversion - install | ||
if: ${{ inputs.useVersioning == 'true' }} | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.x' | ||
preferLatestVersion: true | ||
|
||
- name: tools - gitversion - execute | ||
if: ${{ inputs.useVersioning == 'true' }} | ||
uses: gittools/actions/gitversion/[email protected] | ||
# with: | ||
# useConfigFile: true | ||
# configFilePath: GitVersion.yaml | ||
|
||
- name: cache - nuget | ||
uses: actions/cache@v4 | ||
with: | ||
configuration: Debug | ||
useVersioning: false | ||
path: ~/.nuget/packages | ||
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | ||
restore-keys: | | ||
${{ runner.os }}-nuget- | ||
- name: test | ||
if: ${{ steps.change_detection.outputs.changes != '[]' }} | ||
uses: ./.github/actions/test | ||
- name: dotnet restore | ||
shell: bash | ||
run: dotnet restore | ||
|
||
- name: dotnet build | ||
if: ${{ inputs.useVersioning == 'true' }} | ||
shell: bash | ||
run: dotnet build --no-restore --configuration Release /p:Version=${{env.GitVersion_SemVer}} /p:AssemblyVersion=${{env.GitVersion_AssemblySemFileVer}} /p:NuGetVersion=${{env.GitVersion_SemVer}} | ||
|
||
- name: dotnet test | ||
shell: bash | ||
run: dotnet test --no-build --configuration Release --verbosity normal | ||
|
||
- name: test-reporter | ||
uses: dorny/test-reporter@v1 | ||
if: always() | ||
with: | ||
name: Test Results | ||
path: .artifacts/TestResults/*.trx | ||
reporter: dotnet-trx | ||
|
||
- name: artifacts - nuget - gather | ||
run: | | ||
mkdir -p .artifacts/nuget | ||
find . -name "*.nupkg" -exec cp {} .artifacts/nuget/ \; | ||
- name: artifacts - nuget - upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts-nuget | ||
path: .artifacts/nuget/*.nupkg | ||
|
||
cd: | ||
name: CD | ||
|
@@ -61,27 +110,17 @@ jobs: | |
startsWith(github.ref, 'refs/heads/release/') || | ||
startsWith(github.ref, 'refs/heads/hotfix/')) | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: build | ||
uses: ./.github/actions/build | ||
- name: artifacts - nuget - download | ||
uses: actions/download-artifact@v4 | ||
with: | ||
configuration: Release | ||
useVersioning: true | ||
|
||
- name: artifacts - nuget - gather | ||
run: | | ||
mkdir -p .artifacts/nuget | ||
find . -name "*.nupkg" -exec cp {} .artifacts/nuget/ \; | ||
name: artifacts-nuget | ||
path: .artifacts/nuget | ||
|
||
- name: artifacts - nuget - upload | ||
uses: actions/upload-artifact@v4 | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
name: artifacts-nuget | ||
path: .artifacts/nuget/*.nupkg | ||
fetch-depth: 0 | ||
|
||
- name: git - tag | ||
if: > | ||
|