Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aschuhardt authored Oct 4, 2023
1 parent 172768b commit e6879fe
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Test and Publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
name: Build and Publish
on: workflow_dispatch
jobs:
version:
name: Calculate Version
Expand All @@ -23,24 +19,10 @@ jobs:
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0
test:
strategy:
matrix:
framework: [ netstandard2.0, net6.0, net7.0 ]
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 7.0.x
- name: Run Tests
run: dotnet test -f ${{ matrix.framework }}
build:
name: Build, Pack, Publish
name: Build and Publish
runs-on: ubuntu-latest
needs: [ version, test ]
needs: [ version ]
steps:
- uses: actions/checkout@v3
- name: Setup .NET
Expand Down

0 comments on commit e6879fe

Please sign in to comment.