Skip to content

Merge pull request #218 from fsprojects/refactor-tests #131

Merge pull request #218 from fsprojects/refactor-tests

Merge pull request #218 from fsprojects/refactor-tests #131

Workflow file for this run

name: Build main (release)
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: windows-latest
steps:
# checkout the code
- name: checkout-code
uses: actions/checkout@v4
with:
fetch-depth: 0
# setup dotnet based on global.json
- name: setup-dotnet
uses: actions/setup-dotnet@v4
# build it, test it, pack it
- name: Run dotnet build (release)
# see issue #105
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
shell: cmd
run: ./build.cmd
test-release:
name: Test Release Build
runs-on: windows-latest
steps:
# checkout the code
- name: checkout-code
uses: actions/checkout@v4
with:
fetch-depth: 0
# setup dotnet based on global.json
- name: setup-dotnet
uses: actions/setup-dotnet@v4
# build it, test it, pack it
- name: Run dotnet test - release
# see issue #105
# very important, since we use cmd scripts, the default is psh, and a bug prevents errorlevel to bubble
shell: cmd
run: ./build.cmd ci -release
- name: Publish test results - release
uses: dorny/test-reporter@v1
if: always()
with:
name: Report release tests
# this path glob pattern requires forward slashes!
path: ./src/FSharp.Control.TaskSeq.Test/TestResults/test-results-release.trx
reporter: dotnet-trx