Skip to content

Commit

Permalink
Merge pull request #1 from pfpack/feature/unit
Browse files Browse the repository at this point in the history
core-unit/release/v2.0.0-preview.1.0.0
  • Loading branch information
pmosk authored Nov 21, 2021
2 parents bf35a76 + 4024ce4 commit 3e4ee08
Show file tree
Hide file tree
Showing 988 changed files with 18 additions and 34,140 deletions.
220 changes: 3 additions & 217 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: .NET

on:
push:
branches: [ master, dev, dev/*, feature/*, fix/*, release/* ]
branches: [ main, dev, dev/*, feature/*, fix/*, release/* ]

pull_request:
branches: [ master ]
branches: [ main ]

release:
types: [ published ]
branches: [ master ]
branches: [ main ]

jobs:
build:
Expand Down Expand Up @@ -49,220 +49,6 @@ jobs:
- name: Test Unit.Tests
run: dotnet test ./src/*/*/Unit.Tests.csproj --no-restore -c Release

# Func.Abstractions.Async

- name: Restore Func.Abstractions.Async
run: dotnet restore ./src/*/*/Func.Abstractions.Async.csproj

- name: Build Func.Abstractions.Async
run: dotnet build ./src/*/*/Func.Abstractions.Async.csproj --no-restore -c Release

- name: Pack Func.Abstractions.Async
run: dotnet pack ./src/*/*/Func.Abstractions.Async.csproj --no-restore -o ~/nuget -c Release

# Func.Abstractions.AsyncValue

- name: Restore Func.Abstractions.AsyncValue
run: dotnet restore ./src/*/*/Func.Abstractions.AsyncValue.csproj

- name: Build Func.Abstractions.AsyncValue
run: dotnet build ./src/*/*/Func.Abstractions.AsyncValue.csproj --no-restore -c Release

- name: Pack Func.Abstractions.AsyncValue
run: dotnet pack ./src/*/*/Func.Abstractions.AsyncValue.csproj --no-restore -o ~/nuget -c Release

# Func.Abstractions.Sync

- name: Restore Func.Abstractions.Sync
run: dotnet restore ./src/*/*/Func.Abstractions.Sync.csproj

- name: Build Func.Abstractions.Sync
run: dotnet build ./src/*/*/Func.Abstractions.Sync.csproj --no-restore -c Release

- name: Pack Func.Abstractions.Sync
run: dotnet pack ./src/*/*/Func.Abstractions.Sync.csproj --no-restore -o ~/nuget -c Release

# Func.Abstractions

- name: Restore Func.Abstractions
run: dotnet restore ./src/*/*/Func.Abstractions.csproj

- name: Build Func.Abstractions
run: dotnet build ./src/*/*/Func.Abstractions.csproj --no-restore -c Release

- name: Pack Func.Abstractions
run: dotnet pack ./src/*/*/Func.Abstractions.csproj --no-restore -o ~/nuget -c Release

# Func.Extensions.Async

- name: Restore Func.Extensions.Async
run: dotnet restore ./src/*/*/Func.Extensions.Async.csproj

- name: Build Func.Extensions.Async
run: dotnet build ./src/*/*/Func.Extensions.Async.csproj --no-restore -c Release

- name: Pack Func.Extensions.Async
run: dotnet pack ./src/*/*/Func.Extensions.Async.csproj --no-restore -o ~/nuget -c Release

- name: Restore Func.Extensions.Async.Tests.Primary
run: dotnet restore ./src/*/*/Func.Extensions.Async.Tests.Primary.csproj

- name: Test Func.Extensions.Async.Tests.Primary
run: dotnet test ./src/*/*/Func.Extensions.Async.Tests.Primary.csproj --no-restore -c Release

- name: Restore Func.Extensions.Async.Tests.DefCancellation
run: dotnet restore ./src/*/*/Func.Extensions.Async.Tests.DefCancellation.csproj

- name: Test Func.Extensions.Async.Tests.DefCancellation
run: dotnet test ./src/*/*/Func.Extensions.Async.Tests.DefCancellation.csproj --no-restore -c Release

# Func.Extensions.AsyncValue

- name: Restore Func.Extensions.AsyncValue
run: dotnet restore ./src/*/*/Func.Extensions.AsyncValue.csproj

- name: Build Func.Extensions.AsyncValue
run: dotnet build ./src/*/*/Func.Extensions.AsyncValue.csproj --no-restore -c Release

- name: Pack Func.Extensions.AsyncValue
run: dotnet pack ./src/*/*/Func.Extensions.AsyncValue.csproj --no-restore -o ~/nuget -c Release

- name: Restore Func.Extensions.AsyncValue.Tests.Primary
run: dotnet restore ./src/*/*/Func.Extensions.AsyncValue.Tests.Primary.csproj

- name: Test Func.Extensions.AsyncValue.Tests.Primary
run: dotnet test ./src/*/*/Func.Extensions.AsyncValue.Tests.Primary.csproj --no-restore -c Release

- name: Restore Func.Extensions.AsyncValue.Tests.DefCancellation
run: dotnet restore ./src/*/*/Func.Extensions.AsyncValue.Tests.DefCancellation.csproj

- name: Test Func.Extensions.AsyncValue.Tests.DefCancellation
run: dotnet test ./src/*/*/Func.Extensions.AsyncValue.Tests.DefCancellation.csproj --no-restore -c Release

# Func.Extensions.Sync

- name: Restore Func.Extensions.Sync
run: dotnet restore ./src/*/*/Func.Extensions.Sync.csproj

- name: Build Func.Extensions.Sync
run: dotnet build ./src/*/*/Func.Extensions.Sync.csproj --no-restore -c Release

- name: Pack Func.Extensions.Sync
run: dotnet pack ./src/*/*/Func.Extensions.Sync.csproj --no-restore -o ~/nuget -c Release

- name: Restore Func.Extensions.Sync.Tests
run: dotnet restore ./src/*/*/Func.Extensions.Sync.Tests.csproj

- name: Test Func.Extensions.Sync.Tests
run: dotnet test ./src/*/*/Func.Extensions.Sync.Tests.csproj --no-restore -c Release

# Func.Extensions

- name: Restore Func.Extensions
run: dotnet restore ./src/*/*/Func.Extensions.csproj

- name: Build Func.Extensions
run: dotnet build ./src/*/*/Func.Extensions.csproj --no-restore -c Release

- name: Pack Func.Extensions
run: dotnet pack ./src/*/*/Func.Extensions.csproj --no-restore -o ~/nuget -c Release

# Failure

- name: Restore Failure
run: dotnet restore ./src/*/*/Failure.csproj

- name: Build Failure
run: dotnet build ./src/*/*/Failure.csproj --no-restore -c Release

- name: Pack Failure
run: dotnet pack ./src/*/*/Failure.csproj --no-restore -o ~/nuget -c Release

- name: Restore Failure.Tests
run: dotnet restore ./src/*/*/Failure.Tests.csproj

- name: Test Failure.Tests
run: dotnet test ./src/*/*/Failure.Tests.csproj --no-restore -c Release

# Optional

- name: Restore Optional
run: dotnet restore ./src/*/*/Optional.csproj

- name: Build Optional
run: dotnet build ./src/*/*/Optional.csproj --no-restore -c Release

- name: Pack Optional
run: dotnet pack ./src/*/*/Optional.csproj --no-restore -o ~/nuget -c Release

- name: Restore Optional.Tests
run: dotnet restore ./src/*/*/Optional.Tests.csproj

- name: Test Optional.Tests
run: dotnet test ./src/*/*/Optional.Tests.csproj --no-restore -c Release

# TaggedUnion

- name: Restore TaggedUnion
run: dotnet restore ./src/*/*/TaggedUnion.csproj

- name: Build TaggedUnion
run: dotnet build ./src/*/*/TaggedUnion.csproj --no-restore -c Release

- name: Pack TaggedUnion
run: dotnet pack ./src/*/*/TaggedUnion.csproj --no-restore -o ~/nuget -c Release

- name: Restore TaggedUnion.Tests
run: dotnet restore ./src/*/*/TaggedUnion.Tests.csproj

- name: Test TaggedUnion.Tests
run: dotnet test ./src/*/*/TaggedUnion.Tests.csproj --no-restore -c Release

# Result

- name: Restore Result
run: dotnet restore ./src/*/*/Result.csproj

- name: Build Result
run: dotnet build ./src/*/*/Result.csproj --no-restore -c Release

- name: Pack Result
run: dotnet pack ./src/*/*/Result.csproj --no-restore -o ~/nuget -c Release

- name: Restore Result.Tests
run: dotnet restore ./src/*/*/Result.Tests.csproj

- name: Test Result.Tests
run: dotnet test ./src/*/*/Result.Tests.csproj --no-restore -c Release

# Taggeds

- name: Restore Taggeds
run: dotnet restore ./src/*/*/Taggeds.csproj

- name: Build Taggeds
run: dotnet build ./src/*/*/Taggeds.csproj --no-restore -c Release

- name: Pack Taggeds
run: dotnet pack ./src/*/*/Taggeds.csproj --no-restore -o ~/nuget -c Release

- name: Restore Taggeds.Tests
run: dotnet restore ./src/*/*/Taggeds.Tests.csproj

- name: Test Taggeds.Tests
run: dotnet test ./src/*/*/Taggeds.Tests.csproj --no-restore -c Release

# Core

- name: Restore Core
run: dotnet restore ./src/*/*/Core.csproj

- name: Build Core
run: dotnet build ./src/*/*/Core.csproj --no-restore -c Release

- name: Pack Core
run: dotnet pack ./src/*/*/Core.csproj --no-restore -o ~/nuget -c Release

# Push

- name: Push Packages
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ PublishScripts/
*.nuget.targets

# Nuget personal access tokens and Credentials
nuget.config
# nuget.config

# Microsoft Azure Build Output
csx/
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# PrimeFuncPack Core - A Functional Programming Framework for .NET
# PrimeFuncPack Core.Unit

PrimeFuncPack Core.Unit is a core library for .NET consisting of Unit type targeted for use in functional programming.
The Core.Unit is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as the useful extensions.
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
4 changes: 0 additions & 4 deletions docs/core-func-abs-async/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-func-abs-asyncvalue/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-func-abs-sync/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-func-abs/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-func-ext-async/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-func-ext-asyncvalue/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-func-ext-sync/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-func-ext/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions docs/core-taggeds-failure/README.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/core-unit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

PrimeFuncPack Core.Unit is a core library for .NET consisting of Unit type targeted for use in functional programming.
The Core.Unit is shipped as a part of PrimeFuncPack Core - a functional programming framework for .NET

PrimeFuncPack Core is a functional programming pack for .NET consisting of the fundamentals:
- Optional and Result monads, Failure type, Tagged Union, and Unit type;
- Functional interfaces (Single Abstract Method interfaces);
- as well as extensions such as the Optional Linq, the SAM interfaces factories, etc.

The Pack supports both asynchronous and synchronous programming models.
8 changes: 0 additions & 8 deletions docs/core/README.md

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3e4ee08

Please sign in to comment.