Merge pull request #4395 from devlead/feature/gh-4382 #2161
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: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- develop | |
- hotfix/* | |
jobs: | |
prepare: | |
name: Prepare integration tests | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "Cake Integration Tests" > cake-integration-tests.txt | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cake-integration-tests | |
path: cake-integration-tests.txt | |
build: | |
name: Build | |
needs: prepare | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest, macos-13, ubuntu-latest] | |
steps: | |
- name: Get the sources | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET SDK 8.0.x - 9.0.x | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.x | |
9.0.x | |
- name: Install .NET Core SDK (global.json) | |
uses: actions/setup-dotnet@v4 | |
with: | |
global-json-file: global.json | |
- name: Run Cake script | |
id: build-cake | |
uses: cake-build/cake-action@master | |
with: | |
target: Run-Integration-Tests | |
cake-version: tool-manifest | |
- name: Validate Integration Tests | |
id: validate-cake | |
uses: cake-build/cake-action@master | |
with: | |
script-path: tests/integration/Cake.Common/Build/GitHubActions/ValidateGitHubActionsProvider.cake | |
cake-version: tool-manifest | |
arguments: | | |
CAKE_NETCOREAPP_8_0_VERSION_OS: ${{ steps.build-cake.outputs.CAKE_NETCOREAPP_8_0_VERSION_OS }} | |
CAKE_NETCOREAPP_9_0_VERSION_OS: ${{ steps.build-cake.outputs.CAKE_NETCOREAPP_9_0_VERSION_OS }} | |
ValidateGitHubActionsProvider: true |