From 52cfa113a111d33c278285e13e3845644a16375c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 15 Apr 2026 01:18:37 +0000 Subject: [PATCH] eng: add Linux CI test job; fix AGENTS.md net9.0 -> net10.0 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/test-report.yaml | 10 ++++++++++ .github/workflows/test.yaml | 31 ++++++++++++++++++++++++++++++ AGENTS.md | 2 +- 3 files changed, 42 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-report.yaml b/.github/workflows/test-report.yaml index ba0a510d..46796028 100644 --- a/.github/workflows/test-report.yaml +++ b/.github/workflows/test-report.yaml @@ -29,3 +29,13 @@ jobs: name: Report debug tests # Name of the check run which will be created path: '*.trx' # Path to test results (inside artifact .zip) reporter: dotnet-trx # Format of test results + + test-report-release-linux: + runs-on: ubuntu-latest + steps: + - uses: dorny/test-reporter@v2 + with: + artifact: test-results-release-linux # artifact name + name: Report release tests (Linux) # Name of the check run which will be created + path: '*.trx' # Path to test results (inside artifact .zip) + reporter: dotnet-trx # Format of test results diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a1f36a60..a4dff6f9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -77,3 +77,34 @@ jobs: name: test-results-debug # this path glob pattern requires forward slashes! path: ./src/FSharp.Control.TaskSeq.Test/TestResults/test-results-debug.trx + + + test-release-linux: + name: Test Release Build (Linux) + runs-on: ubuntu-latest + steps: + - name: checkout-code + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: setup-dotnet + uses: actions/setup-dotnet@v4 + + - name: Cache NuGet packages + uses: actions/cache@v5 + with: + path: ~/.nuget/packages + key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', '**/*.csproj', 'global.json') }} + restore-keys: nuget-${{ runner.os }}- + + # run tests directly (build.cmd is Windows-only) + - name: Run dotnet test - release (Linux) + run: dotnet test src/FSharp.Control.TaskSeq.Test/FSharp.Control.TaskSeq.Test.fsproj -c Release --blame-hang-timeout 60000ms --logger "console;verbosity=detailed" --logger "trx;LogFileName=test-results-release-linux.trx" + + - uses: actions/upload-artifact@v4 + if: success() || failure() + with: + name: test-results-release-linux + # this path glob pattern requires forward slashes! + path: ./src/FSharp.Control.TaskSeq.Test/TestResults/test-results-release-linux.trx diff --git a/AGENTS.md b/AGENTS.md index f40a85b4..6162a53d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,7 +7,7 @@ FSharp.Control.TaskSeq is an F# library providing a `taskSeq` computation expres ## Repository Layout - `src/FSharp.Control.TaskSeq/` — Main library (netstandard2.1) -- `src/FSharp.Control.TaskSeq.Test/` — xUnit test project (net9.0) +- `src/FSharp.Control.TaskSeq.Test/` — xUnit test project (net10.0) - `src/FSharp.Control.TaskSeq.SmokeTests/` — Smoke/integration tests - `src/FSharp.Control.TaskSeq.sln` — Solution file - `Version.props` — Single source of truth for the package version