Skip to content

Yaml Serializer init fixup #500

Yaml Serializer init fixup

Yaml Serializer init fixup #500

Workflow file for this run

name: .NET Core
on:
push
env:
MSSQL_SA_PASSWORD: "YourStrong!Passw0rd"
ACCEPT_EULA: "Y"
MSSQL_PID: "developer"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Disable disk flush for CI
run: sudo apt-get install -y libeatmydata1
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: MySQL
run: sudo systemctl start mysql.service
- name: MS SQL Server
run: |
sudo wget -qO/etc/apt/trusted.gpg.d/microsoft.asc https://packages.microsoft.com/keys/microsoft.asc
sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2019.list)"
sudo apt-get install -y --no-install-recommends postgresql mssql-tools mssql-server
sudo -E /opt/mssql/bin/mssql-conf -n setup accept-eula
- name: Test
run: dotnet test -c Release --verbosity normal
- name: Pack and push
if: contains(github.ref,'refs/tags/')
run: |
version=$(fgrep AssemblyInformationalVersion SharedAssemblyInfo.cs |cut -d'"' -f2) dotnet pack -c Release --include-source --include-symbols -o dist
dotnet nuget push dist/*.nupkg --skip-duplicate -k ${{ secrets.NUGET_KEY }}