Skip to content

Bump NSubstitute from 5.1.0 to 5.3.0 #160

Bump NSubstitute from 5.1.0 to 5.3.0

Bump NSubstitute from 5.1.0 to 5.3.0 #160

Workflow file for this run

on: [push, pull_request]
env:
DOTNET_VERSION: "8.0.x" # The .NET SDK version to use
SOLUTION_DIR: "LocalNetAppChat"
PROJECT: "./LocalNetAppChat.Server/LocalNetAppChat.Server.csproj"
RELEASEPREFIX: "LocalNetAppChat"
jobs:
build:
name: build-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
include:
- os: ubuntu-latest
RUNTIMEID: linux-x64
OUTPUTDIR: lnac-server-linux-x64
- os: windows-latest
RUNTIMEID: win-x64
OUTPUTDIR: lnac-server-win-x64
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
run: dotnet restore
working-directory: Source/${{ env.SOLUTION_DIR }}
# - name: Set version number
# run: ./Set-Version-Number.ps1 "1.${{github.run_number}}"
# working-directory: Scripts
# shell: powershell
- name: Build
run: dotnet build --configuration Release --no-restore
working-directory: Source/${{ env.SOLUTION_DIR }}
- name: Test + Cover
run: dotnet test
working-directory: Source/${{ env.SOLUTION_DIR }}
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: Source/${{ env.SOLUTION_DIR }}/LocalNetAppChat.Server.Domain.Tests/coverage.info
- name: Publish
run: dotnet publish ${{ env.PROJECT }} -c Release -o ${{matrix.OUTPUTDIR}} -p:PublishReadyToRun=true --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:UseAppHost=true -r ${{matrix.RUNTIMEID}}
working-directory: Source/${{ env.SOLUTION_DIR }}
# Release artifacts are handled by release.yml workflow