Skip to content

Commit

Permalink
Merge branch 'release/4.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalberger committed Apr 14, 2024
2 parents d84507c + f568d74 commit 806ff6d
Show file tree
Hide file tree
Showing 561 changed files with 40,411 additions and 195 deletions.
9 changes: 6 additions & 3 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ environment:
#---------------------------------#
image: Visual Studio 2022

init:
- git config --global core.autocrlf true

#---------------------------------#
# Install .NET #
#---------------------------------#
Expand All @@ -16,9 +19,9 @@ install:
- ps: mkdir $env:DOTNET_INSTALL_DIR -Force | Out-Null
- ps: Invoke-WebRequest -Uri "https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.ps1" -OutFile "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1"
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 5.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.419 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 7.0.406 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.201 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 6.0.421 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 7.0.408 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: '& "$($env:DOTNET_INSTALL_DIR)/dotnet-install.ps1" -Version 8.0.204 -InstallDir $env:DOTNET_INSTALL_DIR'
- ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
- ps: dotnet --info

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Installs markdownlint

steps:
- task: NodeTool@0
inputs:
versionSpec: '20.x'
displayName: 'Install NodeJs 20.x'
- script: npm install -g markdownlint-cli
displayName: 'Install markdownlint'
7 changes: 7 additions & 0 deletions .azuredevops/pipelines/templates/steps/install-net5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Installs .NET 6

steps:
- task: UseDotNet@2
inputs:
version: '5.x'
displayName: 'Install .NET 5'
7 changes: 7 additions & 0 deletions .azuredevops/pipelines/templates/steps/install-net6.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Installs .NET 6

steps:
- task: UseDotNet@2
inputs:
version: '6.x'
displayName: 'Install .NET 6'
7 changes: 7 additions & 0 deletions .azuredevops/pipelines/templates/steps/install-net7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Installs .NET 6

steps:
- task: UseDotNet@2
inputs:
version: '7.x'
displayName: 'Install .NET 7'
7 changes: 7 additions & 0 deletions .azuredevops/pipelines/templates/steps/install-net8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Installs .NET 6

steps:
- task: UseDotNet@2
inputs:
version: '8.x'
displayName: 'Install .NET 8'
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,7 @@

steps:
# .NET 5 required for GitVersion
- task: UseDotNet@2
inputs:
version: '5.x'
displayName: 'Install .NET 5'
- task: UseDotNet@2
inputs:
version: '6.x'
displayName: 'Install .NET 6'
- task: UseDotNet@2
inputs:
version: '7.x'
displayName: 'Install .NET 7'
- task: UseDotNet@2
inputs:
version: '8.x'
displayName: 'Install .NET 8'
- template: install-net5.yml
- template: install-net6.yml
- template: install-net7.yml
- template: install-net8.yml
11 changes: 11 additions & 0 deletions .azuredevops/pipelines/templates/steps/provide-nuget-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Makes NuGet packages available for testing

steps:
- download: current
artifact: NuGet Package
displayName: 'Download build artifact'
- task: CopyFiles@2
inputs:
sourceFolder: $(Pipeline.Workspace)/NuGet Package
targetFolder: $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet
displayName: 'Copy build artifact for test run'
68 changes: 68 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Build and tests

# Workflow Trigger
on:
# Trigger the workflow on a pull request to any branch
pull_request:
# Triggers the workflow in the event there is a push to master
push:
branches:
- master

jobs:
# Build
Build:
name: Build
runs-on: ubuntu-22.04
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.sh
shell: bash
- name: Publish NuGet package as build artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4
with:
name: NuGet Package
path: ./BuildArtifacts/Packages/NuGet/
# Integration Tests Cake.Issues.PullRequests.GitHubActions Cake Scripting
IntegrationTestsPullRequestsGitHubActionsCakeScripting:
name: Integration Tests Cake.Issues.PullRequests.GitHubActions Cake Scripting
needs: Build
strategy:
fail-fast: false
matrix:
os: [
windows-2019, windows-2022,
# Disabled until https://github.com/cake-contrib/Cake.Issues/issues/514 is fixed
# ubuntu-20.04, ubuntu-22.04,
macos-11, macos-14]
dotnet: [6.x, 7.x, 8.x]
runs-on: ${{ matrix.os }}
steps:
- name: Get the sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- 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: ${{ matrix.dotnet }}
- name: Run integration tests
run: ./build.sh --verbosity=diagnostic
working-directory: ./tests/Cake.Issues.PullRequests.GitHubActions/script-runner/
shell: bash
Loading

0 comments on commit 806ff6d

Please sign in to comment.