Skip to content

Commit a7ea436

Browse files
github-actions[bot]Copilot
authored andcommitted
eng: add Linux release test job to main.yaml CI
The PR check workflow (test.yaml) already runs tests on Linux, but the main-branch workflow (main.yaml) only tested on Windows. This gap means Linux-specific failures on merged code would not be caught immediately. Add a test-release-linux job mirroring the one in test.yaml: - runs on ubuntu-latest - calls dotnet test directly (build.cmd is Windows-only) - uses dorny/test-reporter@v2 for inline result reporting Co-authored-by: Copilot <[email protected]>
1 parent fc687a3 commit a7ea436

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/main.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,35 @@ jobs:
6565
# this path glob pattern requires forward slashes!
6666
path: ./src/FSharp.Control.TaskSeq.Test/TestResults/test-results-release.trx
6767
reporter: dotnet-trx
68+
69+
test-release-linux:
70+
name: Test Release Build (Linux)
71+
runs-on: ubuntu-latest
72+
steps:
73+
- name: checkout-code
74+
uses: actions/checkout@v6
75+
with:
76+
fetch-depth: 0
77+
78+
- name: setup-dotnet
79+
uses: actions/setup-dotnet@v4
80+
81+
- name: Cache NuGet packages
82+
uses: actions/cache@v5
83+
with:
84+
path: ~/.nuget/packages
85+
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', '**/*.csproj', 'global.json') }}
86+
restore-keys: nuget-${{ runner.os }}-
87+
88+
# build.cmd is Windows-only; run dotnet test directly on Linux
89+
- name: Run dotnet test - release (Linux)
90+
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"
91+
92+
- name: Publish test results - release (Linux)
93+
uses: dorny/test-reporter@v2
94+
if: always()
95+
with:
96+
name: Report release tests (Linux)
97+
# this path glob pattern requires forward slashes!
98+
path: ./src/FSharp.Control.TaskSeq.Test/TestResults/test-results-release-linux.trx
99+
reporter: dotnet-trx

0 commit comments

Comments
 (0)