Skip to content

Balea Nightly Build #1481

Balea Nightly Build

Balea Nightly Build #1481

Workflow file for this run

name: Balea Nightly Build
on:
schedule:
- cron: "0 6 * * *"
jobs:
build:
env:
BUILD_CONFIG: Release
VERSION_SUFFIX: -preview${{ github.run_number }}
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.424
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.424
- name: Setup .NET Core SDK 8.0.303
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.303
- 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 -o ./artifacts -c $BUILD_CONFIG --version-suffix $VERSION_SUFFIX --no-build
- name: dotnet pack [Balea.Configuration.Store]
run: dotnet pack ./src/Balea.Configuration.Store/Balea.Configuration.Store.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix $VERSION_SUFFIX --no-build
- name: dotnet pack [Balea.EntityFrameworkCore.Store]
run: dotnet pack ./src/Balea.EntityFrameworkCore.Store/Balea.EntityFrameworkCore.Store.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix $VERSION_SUFFIX --no-build
- name: dotnet pack [Balea.Api.Store]
run: dotnet pack ./src/Balea.Api.Store/Balea.Api.Store.csproj -o ./artifacts -c $BUILD_CONFIG --version-suffix $VERSION_SUFFIX --no-build
- name: Publish nuget
run: |
for f in ./artifacts/*.nupkg
do
echo "Publishing $f"
curl --silent --show-error --fail -vX PUT -u "Xabaril:${{ secrets.GITHUB_TOKEN }}" -F package=@$f https://nuget.pkg.github.com/Xabaril/
if [ $? -eq 0 ]
then
echo "successfully pushed $f"
else
echo "failed to push $f" >&2
exit 1
fi
done
shell: bash