Merge branch 'master' of https://github.com/MrYossu/Pixata.Utilities #296
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: master | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build_pixata: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET Core 2.1 | |
uses: actions/setup-dotnet@v1.7.2 | |
with: | |
dotnet-version: '2.1.x' | |
- name: Setup .NET Core 7 | |
uses: actions/setup-dotnet@v1.7.2 | |
with: | |
dotnet-version: '7.0' | |
# ***************** BUILDS **************** # | |
# Pixata.Blazor | |
- name: Restore - Pixata.Blazor Dependencies | |
run: dotnet restore Pixata.Blazor/Pixata.Blazor.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Blazor.csproj | |
run: dotnet build Pixata.Blazor/Pixata.Blazor.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.Blazor.TelerikComponents | |
- name: Restore - Pixata.Blazor.TelerikComponents Dependencies | |
run: dotnet restore Pixata.Blazor.TelerikComponents/Pixata.Blazor.TelerikComponents.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Blazor.TelerikComponents.csproj | |
run: dotnet build Pixata.Blazor.TelerikComponents/Pixata.Blazor.TelerikComponents.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.Blazor.LanguageExtComponents | |
- name: Restore - Pixata.Blazor.LanguageExtComponents Dependencies | |
run: dotnet restore Pixata.Blazor.LanguageExtComponents/Pixata.Blazor.LanguageExtComponents.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Blazor.LanguageExtComponents.csproj | |
run: dotnet build Pixata.Blazor.LanguageExtComponents/Pixata.Blazor.LanguageExtComponents.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.Blazor.Sample | |
- name: Restore - Pixata.Blazor.Sample Dependencies | |
run: dotnet restore Pixata.Blazor.Sample/Pixata.Blazor.Sample.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Blazor.Sample | |
run: dotnet build Pixata.Blazor.Sample/Pixata.Blazor.Sample.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.Extensions | |
- name: Restore - Pixata.Extensions Dependencies | |
run: dotnet restore Pixata.Extensions/Pixata.Extensions.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Extensions.csproj | |
run: dotnet build Pixata.Extensions/Pixata.Extensions.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.Email | |
- name: Restore - Pixata.Email Dependencies | |
run: dotnet restore Pixata.Email/Pixata.Email.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Email.csproj | |
run: dotnet build Pixata.Email/Pixata.Email.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.Functional | |
- name: Restore - Pixata.Functional Dependencies | |
run: dotnet restore Pixata.Functional/Pixata.Functional.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Functional.csproj | |
run: dotnet build Pixata.Functional/Pixata.Functional.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.SimilarityChooser | |
- name: Restore - Pixata.SimilarityChooser Dependencies | |
run: dotnet restore Pixata.SimilarityChooser/Pixata.SimilarityChooser.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.SimilarityChooser.csproj | |
run: dotnet build Pixata.SimilarityChooser/Pixata.SimilarityChooser.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.Google | |
- name: Restore - Pixata.Google Dependencies | |
run: dotnet restore Pixata.Google/Pixata.Google.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Google.csproj | |
run: dotnet build Pixata.Google/Pixata.Google.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# Pixata.Extensions.Tests | |
- name: Restore - Pixata.Extensions.Tests Dependencies | |
run: dotnet restore Pixata.Extensions.Tests/Pixata.Extensions.Tests.csproj --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
- name: Build - Pixata.Extensions.Tests | |
run: dotnet build Pixata.Extensions.Tests/Pixata.Extensions.Tests.csproj --configuration Release --configfile ./nuget.config | |
env: | |
TELERIK_USERNAME: ${{secrets.MYTELERIKACCOUNTUSERNAME}} | |
TELERIK_PASSWORD: ${{secrets.MYTELERIKACCOUNTPASSWORD}} | |
# ***************** TESTS **************** # | |
# IMPORTANT - ALL PROJECTS SHOULD BE RESTORED (and built) BEFORE USING dotnet tests | |
- name: Run Tests | |
run: dotnet test --verbosity normal | |
# ***************** PUBLISHING **************** # | |
# nuget pushes moved to release.yml workflow |