Skip to content

chore: move test harness to .NET 10 (#38) #64

chore: move test harness to .NET 10 (#38)

chore: move test harness to .NET 10 (#38) #64

name: CI Branches
on:
push:
branches:
- '**'
workflow_dispatch:
permissions:
contents: read
checks: write
jobs:
build-and-test:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Enforce changelog updates on every commit
env:
REQUIRE_CHANGELOG_ALWAYS: "true"
run: .github/scripts/check-unreleased-changelog.sh
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.301
- name: Restore
run: dotnet restore FSharp.MongoDB.sln
- name: Build
run: dotnet build FSharp.MongoDB.sln --configuration Release --no-restore
- name: Test
run: dotnet test FSharp.MongoDB.sln --configuration Release --no-build --logger "trx" --results-directory TestResults
- name: Build NuGet package
run: dotnet pack src/FSharp.MongoDB.Bson/FSharp.MongoDB.Bson.fsproj --configuration Release --no-build -o .out
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-branches
path: TestResults/**/*.trx
if-no-files-found: warn
- name: Publish test report
if: (!cancelled())
continue-on-error: true
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: TestResults/**/*.trx
check_name: Test Results (Branches)
comment_mode: off
job_summary: true