Skip to content

Merge branch 'release/4.2.0' #1161

Merge branch 'release/4.2.0'

Merge branch 'release/4.2.0' #1161

Workflow file for this run

name: Build and tests
on: [push, pull_request]
jobs:
# Build
Build:
name: Build
runs-on: windows-2022
steps:
- name: Get the sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Fetch all tags and branches
run: git fetch --prune --unshallow
- name: Install .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
# .NET 5 required for GitVersion
dotnet-version: |
5.x
6.x
7.x
8.x
- name: Build
run: .\build.ps1
shell: powershell
- name: Publish NuGet package as build artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet/
# Integration Tests Script Runner Windows (.NET Core tool)
Test_Windows_DotNetCoreTool:
name: Integration Tests Script Runner Windows (.NET Core tool)
needs: Build
runs-on: windows-2019
steps:
- name: Get the sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Install required tools
run: npm install -g markdownlint-cli
shell: powershell
- name: Download build artifact
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet
- name: Install .NET
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3 # v4
with:
dotnet-version: |
6.x
- name: Run integration tests
run: ./build.ps1 --verbosity=diagnostic
working-directory: ./tests/script-runner/
shell: powershell
- name: Publish generated reports as build artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
with:
name: Integration Tests Script Runner Windows (.NET Core tool)
path: ./tests/script-runner/BuildArtifacts/output/