Merge pull request #50 from Xabaril/fix/circuit-braker-client-issue #20
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: Balea continous Deployment | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
env: | |
BUILD_CONFIG: Release | |
name: Build | |
runs-on: ubuntu-latest | |
services: | |
sql-server: | |
image: mcr.microsoft.com/mssql/server | |
env: | |
ACCEPT_EULA: Y | |
MSSQL_SA_PASSWORD: Password12! | |
ports: | |
- 5433:1433 | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup .NET Core SDK 6.0.200 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.200 | |
- name: Setup .NET Core SDK 5.0.101 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 5.0.101 | |
- name: Setup .NET Core SDK 3.1.301 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.404 | |
- name: dotnet build | |
run: dotnet build Balea.sln -c $BUILD_CONFIG | |
- name: dotnet test [FunctionalTests] | |
run: dotnet test ./test/FunctionalTests/FunctionalTests.csproj -c $BUILD_CONFIG --no-build | |
- name: dotnet pack [Balea] | |
run: dotnet pack ./src/Balea/Balea.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts | |
- name: dotnet pack [Balea.Configuration.Store] | |
run: dotnet pack ./src/Balea.Configuration.Store/Balea.Configuration.Store.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts | |
- name: dotnet pack [Balea.EntityFrameworkCore.Store] | |
run: dotnet pack ./src/Balea.EntityFrameworkCore.Store/Balea.EntityFrameworkCore.Store.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts | |
- name: dotnet pack [Balea.Api.Store] | |
run: dotnet pack ./src/Balea.Api.Store/Balea.Api.Store.csproj -c $BUILD_CONFIG --no-build --include-source --include-symbols -o ./artifacts | |
- name: setup nuget | |
uses: NuGet/[email protected] | |
with: | |
nuget-version: latest | |
- name: Publish Balea nuget | |
run: dotnet nuget push ./artifacts/Balea.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
- name: Publish Configuration Store nuget | |
run: dotnet nuget push ./artifacts/Balea.Configuration.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
- name: Publish EntityFramework Store nuget | |
run: dotnet nuget push ./artifacts/Balea.EntityFrameworkCore.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate | |
- name: Publish Api Store nuget | |
run: dotnet nuget push ./artifacts/Balea.Api.Store.*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate |