Added src\Directory.Build.props
#500
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: Build and Test | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
pull_request: | |
branches: | |
- master | |
- dev | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | |
DOTNET_NOLOGO: true | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
dotnet: [8.0.403] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ matrix.dotnet }} | |
- name: Add version to global.json | |
run: | | |
$version = "${{ matrix.dotnet }}" | |
$globalJsonPath = "global.json" | |
$globalJson = Get-Content -Raw -Path $globalJsonPath | ConvertFrom-Json | |
if ($null -eq $globalJson.sdk.version) { | |
$globalJson.sdk | Add-Member -Type NoteProperty -Name version -Value $version | |
} else { | |
$globalJson.sdk.version = $version | |
} | |
$globalJson | ConvertTo-Json -Depth 10 | Set-Content -Path $globalJsonPath | |
shell: pwsh | |
- name: Install local tools | |
run: dotnet tool restore | |
- name: Build and run integration tests | |
run: dotnet run --project build/Build.fsproj --launch-profile BuildAndTest |