Work around MSFT test harness changes #849
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- master | |
- feature/* | |
- release/* | |
- develop/github/* | |
pull_request: | |
branches: | |
- master | |
# per https://www.meziantou.net/how-to-cancel-github-workflows-when-pushing-new-commits-on-a-branch.htm | |
# https://docs.github.com/en/actions/learn-github-actions/expressions | |
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context | |
concurrency: | |
# github.workflow: name of the workflow | |
# github.event.pull_request.number || github.ref: pull request number or branch name if not a pull request | |
group: ${{ github.workflow }} | |
#-${{ github.event.pull_request.number || github.ref }} | |
# Cancel in-progress runs when a new workflow with the same group name is triggered | |
cancel-in-progress: true | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7.0.400' | |
- name: Tools | |
run: dotnet tool restore | |
- name: Setup | |
run: dotnet run --project .\Build\Setup.fsproj | |
- name: Build | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
NUGET_API_TOKEN: ${{ secrets.NUGET_API_TOKEN }} | |
run: dotnet run --project .\Build\Build.fsproj | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: nupkgs | |
path: _Packagin*/*.nupkg | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: reports.windows | |
path: | | |
_Reports | |
_Packaging/*.xml | |
./**/AltCover*.log | |
./**/dotnettest.*.txt | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7.0.400' | |
- name: Tools | |
run: dotnet tool restore | |
- name: Setup | |
run: dotnet run --project ./Build/Setup.fsproj | |
- name: Build | |
run: dotnet run --project ./Build/Build.fsproj | |
- uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: reports.linux | |
path: | | |
_Reports | |
_Packaging/*.xml | |
./**/AltCover*.log | |
./**/dotnettest.*.txt |