Skip to content

Commit

Permalink
Update build-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mehdihadeli authored Aug 22, 2024
1 parent fae4bb3 commit d30247e
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,12 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
# https://github.com/dotnet/Nerdbank.GitVersioning/blob/main/doc/cloudbuild.md#github-actions
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.

- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"

# https://github.com/joseftw/jos.enumeration/blob/main/.github/workflows/verify.yml
# https://github.com/dotnet/Nerdbank.GitVersioning
- uses: dotnet/[email protected]
id: nbgv


- name: Cache NuGet Packages
uses: actions/cache@v3
with:
Expand All @@ -40,9 +32,9 @@ jobs:
- name: Restore dependencies
run: dotnet restore Vertical.Slice.Template.sln

- name: Build Version ${{ steps.nbgv.outputs.nugetpackageversion }}
- name: Build Version
run: dotnet build Vertical.Slice.Template.sln -c Release --no-restore

- name: Test Version ${{ steps.nbgv.outputs.nugetpackageversion }}
- name: Test Version
run: |
dotnet test Vertical.Slice.Template.sln -c Release --no-restore --no-build

0 comments on commit d30247e

Please sign in to comment.