-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use matrix for .net versions to test all versions
- Loading branch information
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -17,23 +17,27 @@ jobs: | |
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 8.0.x | ||
dotnet-version: | | ||
3.1.x | ||
6.0.x | ||
7.0.x | ||
8.0.x | ||
include-prerelease: true | ||
- name: Nerdbank.GitVersioning | ||
# You may pin to the exact commit or the version. | ||
# uses: dotnet/nbgv@49d4f35f34d895d282b99855b2e0034f8f608ba5 | ||
uses: dotnet/[email protected] | ||
with: | ||
setAllVars: true | ||
|
||
- name: Restore dependencies | ||
- name: Install dependencies | ||
run: dotnet restore | ||
- name: Test Before Publish | ||
run: dotnet test --verbosity normal -f net8.0 | ||
- name: Build | ||
run: dotnet build --configuration Release --no-restore | ||
- name: Test | ||
run: dotnet test --no-restore --verbosity normal | ||
- name: Build | ||
run: dotnet pack --no-restore StreamRegex.Extensions -o NuPkgs | ||
- name: Setup NuGet.exe for use with actions | ||
uses: NuGet/[email protected] | ||
with: | ||
nuget-api-key: ${{secrets.NUGET_API_KEY}} | ||
- name: Nuget Publish | ||
run: nuget push NuPkgs/*.*nupkg -Source https://api.nuget.org/v3/index.json | ||
run: nuget push NuPkgs/*.*nupkg -Source https://api.nuget.org/v3/index.json |