Skip to content

Commit

Permalink
Testing 7
Browse files Browse the repository at this point in the history
  • Loading branch information
aheintz committed Aug 20, 2024
1 parent b3a9a0a commit da4ddec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ jobs:
- name: Restore dependencies
run: dotnet restore
- name: Extract branch name if release
if: startsWith(github.ref, 'refs/heads/release') != true
shell: bash
run: echo "BRANCH=$(echo $GITHUB_REF)"
#run: echo "BRANCH=0.0.1" >> $GITHUB_ENV
run: echo "BRANCH=$(echo $GITHUB_REF | cut -d '/' -f 4)" >> $GITHUB_ENV
- name: Extract branch name if not release
if: startsWith(github.ref, 'refs/heads/release')
shell: bash
run: echo "BRANCH=$(echo $GITHUB_REF | cut -d '/' -f 4)" >> $GITHUB_ENV
- name: Build
run: dotnet build --no-restore
run: dotnet build --no-restore -c Release /property:Version=${{ env.BRANCH }}
- name: Test
run: dotnet test --no-build --verbosity normal --filter "TestCategory!=Integration"
- name: Publish
Expand Down

0 comments on commit da4ddec

Please sign in to comment.