Bump Microsoft.NET.Test.Sdk from 17.7.1 to 17.7.2 #435
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: .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: 6.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 }} |