OSOE-928: Check if moving the .NET SDK install dir to the D drive on Windows makes the builds faster in Lombiq.GitHub.Actions #2318
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 and Test Windows | |
# Windows builds are only run on-demand, to be run once before merging a PR, and for pushes to dev. This is because | |
# Windows builds are much slower and more expensive than Ubuntu ones, and them catching issues that aren't surfaced | |
# under Ubuntu is rare (but does happen). So, not running them for every push of every PR. | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
build-and-test-larger-runners: | |
name: Build and Test Windows - root solution (larger runners) | |
uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-orchard-core.yml@issue/OSOE-928 | |
with: | |
parent-job-name: root-solution-larger-runners | |
machine-types: '["windows-2022-8core"]' | |
timeout-minutes: 50 | |
set-up-sql-server: 'true' | |
set-up-azurite: 'true' | |
build-create-binary-log: 'true' | |
dotnet-test-process-timeout: 720000 | |
# Running ZAP for security scans in Docker under GHA Windows runners won't work since such virtualization is not | |
# supported by GHA. | |
# The currently used Elasticsearch setup action (https://github.com/elastic/elastic-github-actions/tree/master/elasticsearch) | |
# can only be used on Linux. | |
test-filter: FullyQualifiedName!~SecurityScanningTests&FullyQualifiedName!~BehaviorElasticsearchTests | |
cancel-in-progress-for-this-pr: 'false' | |
build-and-test-standard-runners: | |
name: Build and Test Windows - root solution (standard runners) | |
uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-orchard-core.yml@issue/OSOE-928 | |
with: | |
parent-job-name: root-solution-standard-runners | |
# Since dev builds are not awaited by anyone, they can run on the slower free runners. | |
machine-types: '["windows-2022"]' | |
timeout-minutes: 70 | |
set-up-sql-server: 'true' | |
set-up-azurite: 'true' | |
build-create-binary-log: 'true' | |
dotnet-test-process-timeout: 840000 | |
# Running ZAP for security scans in Docker under GHA Windows runners won't work since such virtualization is not | |
# supported by GHA. | |
# The currently used Elasticsearch setup action (https://github.com/elastic/elastic-github-actions/tree/master/elasticsearch) | |
# can only be used on Linux. | |
test-filter: FullyQualifiedName!~SecurityScanningTests&FullyQualifiedName!~BehaviorElasticsearchTests | |
cancel-in-progress-for-this-pr: 'false' | |
build-and-test-nuget-test: | |
name: Build and Test Windows - NuGetTest solution | |
uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-orchard-core.yml@issue/OSOE-928 | |
with: | |
parent-job-name: nuget-solution | |
machine-types: '["windows-2022"]' | |
build-directory: NuGetTest | |
timeout-minutes: 30 | |
dotnet-test-process-timeout: 540000 | |
# Running ZAP for security scans in Docker under GHA Windows runners won't work since such virtualization is not | |
# supported by GHA. | |
# The currently used Elasticsearch setup action (https://github.com/elastic/elastic-github-actions/tree/master/elasticsearch) | |
# can only be used on Linux. | |
# Without quotes, somehow the value won't be passed properly and the test execution will hang, despite seemingly | |
# every value being the same as with quotes. | |
# yamllint disable-line rule:quoted-strings | |
test-filter: 'FullyQualifiedName!~SecurityScanningTests&FullyQualifiedName!~BehaviorElasticsearchTests' | |
cancel-in-progress-for-this-pr: 'false' |