PrimeFuncPack Unit Test 3.1.0 Release #55
Workflow file for this run
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
name: .NET | |
on: | |
push: | |
branches: [ main, dev, dev/*, feature/*, fix/*, release/* ] | |
pull_request: | |
branches: [ main ] | |
release: | |
types: [ published ] | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
8.0.x | |
# Create Local NuGet Source | |
- name: Create Local NuGet Directory | |
run: mkdir ~/nuget | |
- name: Add Local Nuget Source | |
run: dotnet nuget add source ~/nuget | |
# UnitTest.Data | |
- name: Restore UnitTest.Data | |
run: dotnet restore ./src/*/*/UnitTest.Data.csproj | |
- name: Build UnitTest.Data | |
run: dotnet build ./src/*/*/UnitTest.Data.csproj --no-restore -c Release | |
- name: Pack UnitTest.Data | |
run: dotnet pack ./src/*/*/UnitTest.Data.csproj --no-restore -o ~/nuget -c Release | |
- name: Restore UnitTest.Data.Tests | |
run: dotnet restore ./src/*/*/UnitTest.Data.Tests.fsproj | |
- name: Test UnitTest.Data.Tests | |
run: dotnet test ./src/*/*/UnitTest.Data.Tests.fsproj --no-restore -c Release | |
# Push | |
- name: Push Packages | |
if: ${{ github.event_name == 'release' }} | |
run: > | |
dotnet nuget push "../../../nuget/*.nupkg" | |
-s https://api.nuget.org/v3/index.json | |
-k ${{ secrets.NuGetSourcePassword }} | |
--skip-duplicate |