Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into task/system-text-json-…
Browse files Browse the repository at this point in the history
…migration
  • Loading branch information
sarahelsaig committed Jul 13, 2024
2 parents 63e32f1 + 05f4a32 commit cfa3817
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 54 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
runs-on: ubuntu-22.04
timeout-minutes: 2
steps:
- name: Remove Run Windows Build Label
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev
with:
# The token is necessary to be able to remove the label even if the workflow is triggered by a pull request
# coming from a fork.
token: ${{ secrets.LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN }}
labels: run-windows-build
type: remove
- name: Remove Run Windows Build Label
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev
with:
# The token is necessary to be able to remove the label even if the workflow is triggered by a pull request
# coming from a fork.
token: ${{ secrets.LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN }}
labels: run-windows-build
type: remove

build-and-test-larger-runners:
if: github.ref_name != github.event.repository.default_branch &&
Expand All @@ -38,34 +38,34 @@ jobs:
name: Build and Test Windows - root solution (larger runners)
uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-orchard-core.yml@dev
with:
parent-job-name: "root-solution-larger-runners"
parent-job-name: root-solution-larger-runners
machine-types: "['windows-2022-8core']"
timeout-minutes: 50
set-up-sql-server: "true"
set-up-azurite: "true"
set-up-sql-server: 'true'
set-up-azurite: 'true'
ui-test-parallelism: 0
build-create-binary-log: "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.
test-filter: "FullyQualifiedName!~SecurityScanningTests"
test-filter: FullyQualifiedName!~SecurityScanningTests

build-and-test-standard-runners:
if: github.ref_name == github.event.repository.default_branch
name: Build and Test Windows - root solution (standard runners)
uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-orchard-core.yml@dev
with:
parent-job-name: "root-solution-standard-runners"
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"
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.
test-filter: "FullyQualifiedName!~SecurityScanningTests"
test-filter: FullyQualifiedName!~SecurityScanningTests

build-and-test-nuget-test:
if: github.ref_name == github.event.repository.default_branch ||
Expand All @@ -75,14 +75,14 @@ jobs:
name: Build and Test Windows - NuGetTest solution
uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-orchard-core.yml@dev
with:
parent-job-name: "nuget-solution"
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.
test-filter: "FullyQualifiedName!~SecurityScanningTests"
test-filter: FullyQualifiedName!~SecurityScanningTests

powershell-static-code-analysis:
if: github.ref_name == github.event.repository.default_branch ||
Expand All @@ -93,7 +93,7 @@ jobs:
uses: Lombiq/PowerShell-Analyzers/.github/workflows/static-code-analysis.yml@dev
with:
machine-types: "['windows-2022']"
run-windows-powershell: "false"
run-windows-powershell: 'false'

post-pull-request-checks-automation:
name: Post Pull Request Checks Automation
Expand All @@ -112,11 +112,11 @@ jobs:
timeout-minutes: 2
needs: [build-and-test-larger-runners, build-and-test-nuget-test, powershell-static-code-analysis]
steps:
- name: Remove Windows Build Warning Label
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev
with:
# The token is necessary to be able to remove the label even if the workflow is triggered by a pull request
# coming from a fork.
token: ${{ secrets.LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN }}
labels: requires-windows-build
type: remove
- name: Remove Windows Build Warning Label
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev
with:
# The token is necessary to be able to remove the label even if the workflow is triggered by a pull request
# coming from a fork.
token: ${{ secrets.LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN }}
labels: requires-windows-build
type: remove
36 changes: 18 additions & 18 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@ jobs:
name: Build and Test - root solution (larger runners)
uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-orchard-core.yml@dev
with:
parent-job-name: "root-solution-larger-runners"
parent-job-name: root-solution-larger-runners
machine-types: "['warp-ubuntu-2204-x64-4x']"
timeout-minutes: 30
set-up-sql-server: "true"
set-up-azurite: "true"
set-up-sql-server: 'true'
set-up-azurite: 'true'
ui-test-parallelism: 0
build-create-binary-log: "true"
build-create-binary-log: 'true'
dotnet-test-process-timeout: 600000
build-enable-nuget-caching: "true"
build-enable-npm-caching: "true"
build-enable-nuget-caching: 'true'
build-enable-npm-caching: 'true'

build-and-test-standard-runners:
if: github.ref_name == github.event.repository.default_branch
name: Build and Test - root solution (standard runners)
uses: Lombiq/GitHub-Actions/.github/workflows/build-and-test-orchard-core.yml@dev
with:
# Since dev builds are not awaited by anyone, they can run on the slower free runners.
parent-job-name: "root-solution-standard-runners"
parent-job-name: root-solution-standard-runners
timeout-minutes: 50
set-up-sql-server: "true"
set-up-azurite: "true"
build-create-binary-log: "true"
set-up-sql-server: 'true'
set-up-azurite: 'true'
build-create-binary-log: 'true'
dotnet-test-process-timeout: 780000

build-and-test-nuget-test:
Expand Down Expand Up @@ -94,11 +94,11 @@ jobs:
timeout-minutes: 2
needs: [build-and-test-larger-runners, build-and-test-nuget-test, powershell-static-code-analysis]
steps:
- name: Add Windows Build Warning Label
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev
with:
# The token is necessary to be able to add the label even if the workflow is triggered by a pull request coming
# from a fork.
token: ${{ secrets.LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN }}
labels: requires-windows-build
type: add
- name: Add Windows Build Warning Label
uses: Lombiq/GitHub-Actions/.github/actions/add-remove-label@dev
with:
# The token is necessary to be able to add the label even if the workflow is triggered by a pull request coming
# from a fork.
token: ${{ secrets.LOMBIQBOT_GITHUB_PERSONAL_ACCESS_TOKEN }}
labels: requires-windows-build
type: add
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
ISSUE_JIRA_ISSUE_DESCRIPTION: ${{ secrets.DEFAULT_ISSUE_JIRA_ISSUE_DESCRIPTION }}
PULL_REQUEST_JIRA_ISSUE_DESCRIPTION: ${{ secrets.DEFAULT_PULL_REQUEST_JIRA_ISSUE_DESCRIPTION }}
with:
suffix-issue-titles: "false"
suffix-issue-titles: 'false'
4 changes: 2 additions & 2 deletions Publish-VNext.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ try
{
if ($releaseTags[0] -match '^v\d+\.\d+\.\d+')
{
$version = [Version]$matches[0].Substring(1)
$version = [Version]$Matches[0].Substring(1)
$major = $version.Major
$minor = $version.Minor
$patch = $version.Build
Expand Down Expand Up @@ -168,7 +168,7 @@ finally
{
if ($projectName -like '*.csproj*')
{
.\Update-References.ps1 -ProjectToFind $projectName -NewVersion $NewVersion
.\Update-References.ps1 -ProjectToFind $projectName -NewVersion $newVersion
}
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/Lombiq.OSOCE.Web/Recipes/Lombiq.OSOCE.Tests.recipe.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
"Lombiq.HelpfulExtensions.CodeGeneration",
"Lombiq.HelpfulExtensions.ContentTypes",
"Lombiq.HelpfulExtensions.Flows",
// Shape Tracing messes with the title and thus can break other things, see:
// https://github.com/Lombiq/Helpful-Extensions/issues/120.
// "Lombiq.HelpfulExtensions.ShapeTracing",
"Lombiq.HelpfulExtensions.ShapeTracing",
"Lombiq.HelpfulExtensions.Widgets",
"Lombiq.HelpfulLibraries.Samples",
"Lombiq.Hosting.BuildVersionDisplay",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Lombiq.Tests.UI.Constants;
using Lombiq.Tests.UI.Extensions;
using Lombiq.Tests.UI.Services;
using OpenQA.Selenium;
using SixLabors.ImageSharp;
using System.Threading.Tasks;
Expand Down Expand Up @@ -29,5 +30,6 @@ public Task VerifyHomePageAndLayout() =>
context => context.AssertVisualVerificationApprovedOnAllResolutionsWithPlatformSuffix(
_visualVerificationSizes,
_ => By.TagName("body"),
pixelErrorPercentageThreshold: 0.005));
pixelErrorPercentageThreshold: 0.005),
browser: Browser.Firefox);
}

0 comments on commit cfa3817

Please sign in to comment.