Skip to content

Merge pull request #4291 from cake-build/dependabot/nuget/src/Cake.Nu… #2047

Merge pull request #4291 from cake-build/dependabot/nuget/src/Cake.Nu…

Merge pull request #4291 from cake-build/dependabot/nuget/src/Cake.Nu… #2047

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- main
- develop
- hotfix/*
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- name: Get the sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET SDK 6.0.x - 8.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install .NET Core SDK (global.json)
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Run Cake script
id: build-cake
uses: cake-build/cake-action@v1
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_6_0_VERSION_OS: ${{ steps.build-cake.outputs.CAKE_NETCOREAPP_6_0_VERSION_OS }}
CAKE_NETCOREAPP_7_0_VERSION_OS: ${{ steps.build-cake.outputs.CAKE_NETCOREAPP_7_0_VERSION_OS }}
CAKE_NETCOREAPP_8_0_VERSION_OS: ${{ steps.build-cake.outputs.CAKE_NETCOREAPP_8_0_VERSION_OS }}
ValidateGitHubActionsProvider: true