From 51dfe31a05d3ea7841e0d61b0c081009d2a68c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 12 Nov 2022 18:02:02 +0100 Subject: [PATCH 01/42] Not writing test outputs to a file, to be able to troubleshoot tests timing out --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 +- .github/workflows/build-and-test-orchard-core.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 49649020f..6b76c7e9e 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -35,7 +35,7 @@ $tests = dotnet sln list | } foreach ($test in $tests) { - dotnet test -c Release --no-restore --no-build --nologo --logger "trx;LogFileName=test-results.trx" --verbosity $Verbosity $test 2>&1 >test.out + dotnet test -c Release --no-restore --no-build --nologo --logger "trx;LogFileName=test-results.trx" --verbosity $Verbosity $test if ($?) { diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 96e047221..7d0c3d031 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -142,7 +142,7 @@ jobs: location: ${{ inputs.build-directory}} - name: Tests - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/OSOE-464 with: build-directory: ${{ inputs.build-directory }} test-verbosity: ${{ inputs.build-verbosity }} From a997a7b7680d349f85ca9149d7e376d3fc5d98ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 12 Nov 2022 18:19:00 +0100 Subject: [PATCH 02/42] Diag test verbosity --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 6b76c7e9e..ba93db95a 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -35,7 +35,7 @@ $tests = dotnet sln list | } foreach ($test in $tests) { - dotnet test -c Release --no-restore --no-build --nologo --logger "trx;LogFileName=test-results.trx" --verbosity $Verbosity $test + dotnet test -c Release --no-restore --no-build --nologo --logger "trx;LogFileName=test-results.trx" --verbosity diag $test if ($?) { From 0f139260603e5b86c605869a20f76881ab28ed66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 12 Nov 2022 20:24:41 +0100 Subject: [PATCH 03/42] Revert Invoke-SolutionTests.ps1 --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index ba93db95a..49649020f 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -35,7 +35,7 @@ $tests = dotnet sln list | } foreach ($test in $tests) { - dotnet test -c Release --no-restore --no-build --nologo --logger "trx;LogFileName=test-results.trx" --verbosity diag $test + dotnet test -c Release --no-restore --no-build --nologo --logger "trx;LogFileName=test-results.trx" --verbosity $Verbosity $test 2>&1 >test.out if ($?) { From d3fa27eedb11c35157ff0d3e6686927e2d1440b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 12 Nov 2022 20:28:46 +0100 Subject: [PATCH 04/42] Making dotnet test go to the build output to aid debugging, as well as printing ITestOutputHelper content --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 0390115cd..4ce3e1f4f 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -43,13 +43,15 @@ foreach ($test in $tests) { '--no-build', '--nologo', '--logger', 'trx;LogFileName=test-results.trx' + # This is for xUnit ITestOutputHelper, see https://xunit.net/docs/capturing-output. + '--logger', 'console;verbosity=detailed' '--verbosity', $Verbosity [string]::IsNullOrEmpty($Filter) ? '' : "--filter" [string]::IsNullOrEmpty($Filter) ? '' : $Filter $test ) - dotnet test @dotnetTestSwitches 2>&1 >test.out + dotnet test @dotnetTestSwitches if ($?) { From e3d3ec755614945220439666800d910a8619292d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Sat, 12 Nov 2022 22:46:31 +0100 Subject: [PATCH 05/42] Removing the rest of test.out-related code --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 8 -------- .github/actions/test-dotnet/action.yml | 4 +--- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 4ce3e1f4f..fd59050fd 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -59,13 +59,5 @@ foreach ($test in $tests) { continue } - $needsGrouping = (Select-String "::group::" test.out).Length -eq 0 - - if ($needsGrouping) { Write-Output "::group::Test Failed: $test" } - - bash -c "cat test.out | grep -v 'Connection refused \[::ffff:127.0.0.1\]' | grep -v 'ChromeDriver was started successfully'" - - if ($needsGrouping) { Write-Output "::endgroup::" } - exit 100 } diff --git a/.github/actions/test-dotnet/action.yml b/.github/actions/test-dotnet/action.yml index c2010060c..00c645f02 100644 --- a/.github/actions/test-dotnet/action.yml +++ b/.github/actions/test-dotnet/action.yml @@ -73,9 +73,7 @@ runs: if: success() || failure() with: name: ui-test-failure-dump-${{ steps.setup.outputs.friendly-build-directory-name }}-${{ steps.setup.outputs.runner-suffix }} - path: | - ${{ inputs.build-directory }}/FailureDumps/ - test.out + path: ${{ inputs.build-directory }}/FailureDumps/ if-no-files-found: ignore - name: Test Report From 2e6636de0c9a8e1e9e38594df8d9272a4280c0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 15 Nov 2022 00:50:40 +0100 Subject: [PATCH 06/42] Re-adding process-level grouping --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index c62ae4547..efe1566d4 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -51,13 +51,19 @@ foreach ($test in $tests) { $test ) + Write-Output "::group::{$test tests}" + dotnet test @dotnetTestSwitches if ($?) { - Write-Output "Test Successful: $test" + Write-Output "Test successful: $test" + Write-Output '::endgroup::' continue } - - exit 100 + else { + Write-Output "Test failed: $test" + Write-Output '::endgroup::' + exit 100 + } } From c341ef145d2a0898c5900f64604b67b21d2ea5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 15 Nov 2022 01:20:38 +0100 Subject: [PATCH 07/42] Removing unneeded group name separator --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index efe1566d4..57c1e4447 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -51,7 +51,7 @@ foreach ($test in $tests) { $test ) - Write-Output "::group::{$test tests}" + Write-Output "::group::$test" dotnet test @dotnetTestSwitches From 03008f5e665a8cbd4efe7c21837cbf9844fea30e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 15 Nov 2022 21:37:24 +0100 Subject: [PATCH 08/42] Back to no high-level test grouping, but re-adding output filtering --- .../test-dotnet/Invoke-SolutionTests.ps1 | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 57c1e4447..36a223a07 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -37,6 +37,11 @@ $tests = dotnet sln list | } foreach ($test in $tests) { + # This could benefit from grouping, above the level of the potential groups created by the tests (the Lombiq UI + # Testing Toolbox adds per-test groups too). However, there's # no nested grouping, see + # https://github.com/actions/runner/issues/1477. See the # c341ef145d2a0898c5900f64604b67b21d2ea5db commit for a + # nested grouping implementation. + $dotnetTestSwitches = @( '--configuration', 'Release' '--no-restore', @@ -51,19 +56,16 @@ foreach ($test in $tests) { $test ) - Write-Output "::group::$test" - - dotnet test @dotnetTestSwitches + dotnet test @dotnetTestSwitches 2>&1 + | Where-Object { $_ -notlike '*Connection refused [[]::ffff:127.0.0.1[]]*' -and $_ -notlike '*ChromeDriver was started successfully*' } if ($?) { Write-Output "Test successful: $test" - Write-Output '::endgroup::' continue } - else { - Write-Output "Test failed: $test" - Write-Output '::endgroup::' - exit 100 - } + + Write-Output "Test failed: $test" + + exit 100 } From 75a9726a7dceb85ce5fcc88e70eaa334e3cc60a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 15 Nov 2022 21:38:40 +0100 Subject: [PATCH 09/42] Code styling --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 36a223a07..62d79682d 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -56,8 +56,8 @@ foreach ($test in $tests) { $test ) - dotnet test @dotnetTestSwitches 2>&1 - | Where-Object { $_ -notlike '*Connection refused [[]::ffff:127.0.0.1[]]*' -and $_ -notlike '*ChromeDriver was started successfully*' } + dotnet test @dotnetTestSwitches 2>&1 | + Where-Object { $_ -notlike '*Connection refused [[]::ffff:127.0.0.1[]]*' -and $_ -notlike '*ChromeDriver was started successfully*' } if ($?) { From 2ce191dde6bd6055df6f041c805ffa7a64a0e033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 15 Nov 2022 21:56:31 +0100 Subject: [PATCH 10/42] Using full cmdlet name instead of single-character aliases for better readability --- .../actions/build-dotnet/Build-DotNetSolutionOrProject.ps1 | 6 +++--- .github/actions/build-dotnet/Write-CacheConfiguration.ps1 | 6 +++--- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 +- .github/actions/test-dotnet/Merge-FailureDumps.ps1 | 6 +++--- .../actions/verify-submodule-pull-request/Check-Parent.ps1 | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/actions/build-dotnet/Build-DotNetSolutionOrProject.ps1 b/.github/actions/build-dotnet/Build-DotNetSolutionOrProject.ps1 index e66b6f736..8c9c00625 100644 --- a/.github/actions/build-dotnet/Build-DotNetSolutionOrProject.ps1 +++ b/.github/actions/build-dotnet/Build-DotNetSolutionOrProject.ps1 @@ -8,7 +8,7 @@ param ( function ConvertTo-Array([string] $rawInput) { - $rawInput.Replace("`r", "").Split("`n") | % { $_.Trim() } | ? { $_ } + $rawInput.Replace("`r", "").Split("`n") | ForEach-Object { $_.Trim() } | Where-Object { $_ } } Write-Output ".NET version number: $Version" @@ -33,7 +33,7 @@ $buildSwitches = ConvertTo-Array @" $Switches "@ -[array] $expectedErrorCodes = ConvertTo-Array $ExpectedCodeAnalysisErrors | % { $_.Split(':')[0] } | Sort-Object +[array] $expectedErrorCodes = ConvertTo-Array $ExpectedCodeAnalysisErrors | ForEach-Object { $_.Split(':')[0] } | Sort-Object $noErrors = $expectedErrorCodes.Count -eq 0 if (Test-Path src/Utilities/Lombiq.Gulp.Extensions/Lombiq.Gulp.Extensions.csproj) @@ -59,7 +59,7 @@ $errorLines = New-Object "System.Collections.Generic.List[string]" $errorCodes = New-Object "System.Collections.Generic.List[string]" $errorFormat = '^(.*)\((\d+),(\d+)\): error (.*)' -dotnet build $SolutionOrProject @buildSwitches 2>&1 | % { +dotnet build $SolutionOrProject @buildSwitches 2>&1 | ForEach-Object { if ($_ -notmatch $errorFormat) { return $_ } ($null, $file, $line, $column, $message) = [regex]::Match($_, $errorFormat, 'Compiled').Groups.Value diff --git a/.github/actions/build-dotnet/Write-CacheConfiguration.ps1 b/.github/actions/build-dotnet/Write-CacheConfiguration.ps1 index f49361e42..888671420 100644 --- a/.github/actions/build-dotnet/Write-CacheConfiguration.ps1 +++ b/.github/actions/build-dotnet/Write-CacheConfiguration.ps1 @@ -9,12 +9,12 @@ if ($IsNuget) { $paths += ,'~/.nuget/packages' } if ($IsNpm) { (Invoke-Maybe { pnpm store path }), (npm config get cache) | - ? { -not [string]::IsNullOrEmpty($_) } | - % { $paths += $_ } + Where-Object { -not [string]::IsNullOrEmpty($_) } | + ForEach-Object { $paths += $_ } } # Ensure the paths exist. -$paths | % { New-Item -ItemType Directory -Force $_ } | Out-Null +$paths | ForEach-Object { New-Item -ItemType Directory -Force $_ } | Out-Null # Multiple paths must be separated by "\n", but we can't include newline in the workflow command so we have to misuse # the format function like this. diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 62d79682d..afc70b1dd 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -31,7 +31,7 @@ $tests = dotnet sln list | Select-String "\.Tests\." | Select-String -NotMatch "Lombiq.Tests.UI.csproj" | Select-String -NotMatch "Lombiq.Tests.csproj" | - ? { + Where-Object { $result = dotnet test --no-restore --list-tests --verbosity $Verbosity $_ 2>&1 | Out-String -Width 9999 -not [string]::IsNullOrEmpty($result) -and $result.Contains("The following Tests are available") } diff --git a/.github/actions/test-dotnet/Merge-FailureDumps.ps1 b/.github/actions/test-dotnet/Merge-FailureDumps.ps1 index 92618aab6..b6d3acdea 100644 --- a/.github/actions/test-dotnet/Merge-FailureDumps.ps1 +++ b/.github/actions/test-dotnet/Merge-FailureDumps.ps1 @@ -6,6 +6,6 @@ $testDirectory = "$Directory/test" $rootDirectory = (Test-Path -Path $testDirectory) ? $testDirectory : $Directory Get-ChildItem $rootDirectory -Recurse | - ? { $_.Name -eq 'FailureDumps' } | - % { $_.GetDirectories() } | - % { Move-Item $_.FullName "$Directory/FailureDumps/${_.Name}" } + Where-Object { $_.Name -eq 'FailureDumps' } | + ForEach-Object { $_.GetDirectories() } | + ForEach-Object { Move-Item $_.FullName "$Directory/FailureDumps/${_.Name}" } diff --git a/.github/actions/verify-submodule-pull-request/Check-Parent.ps1 b/.github/actions/verify-submodule-pull-request/Check-Parent.ps1 index 9a301938b..97874d100 100644 --- a/.github/actions/verify-submodule-pull-request/Check-Parent.ps1 +++ b/.github/actions/verify-submodule-pull-request/Check-Parent.ps1 @@ -4,7 +4,7 @@ param( ) $url = "https://api.github.com/repos/$Repository/pulls?state=open&per_page=100" -$titles = curl -s -H 'Accept: application/vnd.github.v3+json' $url | ConvertFrom-Json | % { $_.title } +$titles = curl -s -H 'Accept: application/vnd.github.v3+json' $url | ConvertFrom-Json | ForEach-Object { $_.title } $issueCode = $Title -replace '^\s*(\w+-\d+)\s*:.*$', '$1' $lookFor = "${issueCode}:" From 82a5323f9c8ab8787de03f3a337eb88079f71f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 15 Nov 2022 21:56:37 +0100 Subject: [PATCH 11/42] Docs --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index afc70b1dd..64b507fe9 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -56,6 +56,8 @@ foreach ($test in $tests) { $test ) + # Filtering is necessary for annoying messages coming from UI testing but only under Ubuntu. There are no actual + # errors. dotnet test @dotnetTestSwitches 2>&1 | Where-Object { $_ -notlike '*Connection refused [[]::ffff:127.0.0.1[]]*' -and $_ -notlike '*ChromeDriver was started successfully*' } From 0eeda5690763a4f6c177806e0841c6ea0e4182cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 15 Nov 2022 23:28:44 +0100 Subject: [PATCH 12/42] Testing that the basic live-output test execution also causes expected ErrorDuringSetupShouldHaltTest errrors to appear --- .../actions/test-dotnet/Invoke-SolutionTests.ps1 | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 64b507fe9..c62ae4547 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -31,17 +31,12 @@ $tests = dotnet sln list | Select-String "\.Tests\." | Select-String -NotMatch "Lombiq.Tests.UI.csproj" | Select-String -NotMatch "Lombiq.Tests.csproj" | - Where-Object { + ? { $result = dotnet test --no-restore --list-tests --verbosity $Verbosity $_ 2>&1 | Out-String -Width 9999 -not [string]::IsNullOrEmpty($result) -and $result.Contains("The following Tests are available") } foreach ($test in $tests) { - # This could benefit from grouping, above the level of the potential groups created by the tests (the Lombiq UI - # Testing Toolbox adds per-test groups too). However, there's # no nested grouping, see - # https://github.com/actions/runner/issues/1477. See the # c341ef145d2a0898c5900f64604b67b21d2ea5db commit for a - # nested grouping implementation. - $dotnetTestSwitches = @( '--configuration', 'Release' '--no-restore', @@ -56,18 +51,13 @@ foreach ($test in $tests) { $test ) - # Filtering is necessary for annoying messages coming from UI testing but only under Ubuntu. There are no actual - # errors. - dotnet test @dotnetTestSwitches 2>&1 | - Where-Object { $_ -notlike '*Connection refused [[]::ffff:127.0.0.1[]]*' -and $_ -notlike '*ChromeDriver was started successfully*' } + dotnet test @dotnetTestSwitches if ($?) { - Write-Output "Test successful: $test" + Write-Output "Test Successful: $test" continue } - Write-Output "Test failed: $test" - exit 100 } From a5c1a40bcefc91312627a6716ee46908a600e639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Tue, 15 Nov 2022 23:36:42 +0100 Subject: [PATCH 13/42] Revert "Testing that the basic live-output test execution also causes expected ErrorDuringSetupShouldHaltTest errrors to appear" This reverts commit 0eeda5690763a4f6c177806e0841c6ea0e4182cc. --- .../actions/test-dotnet/Invoke-SolutionTests.ps1 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index c62ae4547..64b507fe9 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -31,12 +31,17 @@ $tests = dotnet sln list | Select-String "\.Tests\." | Select-String -NotMatch "Lombiq.Tests.UI.csproj" | Select-String -NotMatch "Lombiq.Tests.csproj" | - ? { + Where-Object { $result = dotnet test --no-restore --list-tests --verbosity $Verbosity $_ 2>&1 | Out-String -Width 9999 -not [string]::IsNullOrEmpty($result) -and $result.Contains("The following Tests are available") } foreach ($test in $tests) { + # This could benefit from grouping, above the level of the potential groups created by the tests (the Lombiq UI + # Testing Toolbox adds per-test groups too). However, there's # no nested grouping, see + # https://github.com/actions/runner/issues/1477. See the # c341ef145d2a0898c5900f64604b67b21d2ea5db commit for a + # nested grouping implementation. + $dotnetTestSwitches = @( '--configuration', 'Release' '--no-restore', @@ -51,13 +56,18 @@ foreach ($test in $tests) { $test ) - dotnet test @dotnetTestSwitches + # Filtering is necessary for annoying messages coming from UI testing but only under Ubuntu. There are no actual + # errors. + dotnet test @dotnetTestSwitches 2>&1 | + Where-Object { $_ -notlike '*Connection refused [[]::ffff:127.0.0.1[]]*' -and $_ -notlike '*ChromeDriver was started successfully*' } if ($?) { - Write-Output "Test Successful: $test" + Write-Output "Test successful: $test" continue } + Write-Output "Test failed: $test" + exit 100 } From 859715299e5dcab0a495877162d42e7ab03f805a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 00:18:32 +0100 Subject: [PATCH 14/42] Pointing build-dotnet to issue branch too --- .github/workflows/build-and-test-orchard-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 48df56c90..c1ec852d0 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -133,7 +133,7 @@ jobs: uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/OSOE-464 with: directory: ${{ inputs.build-directory }} verbosity: ${{ inputs.build-verbosity }} From 659dc73ec372af24167071a9086eae13178a68fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 00:23:50 +0100 Subject: [PATCH 15/42] Leftover hashmark --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index 64b507fe9..a785dd5fb 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -38,7 +38,7 @@ $tests = dotnet sln list | foreach ($test in $tests) { # This could benefit from grouping, above the level of the potential groups created by the tests (the Lombiq UI - # Testing Toolbox adds per-test groups too). However, there's # no nested grouping, see + # Testing Toolbox adds per-test groups too). However, there's no nested grouping, see # https://github.com/actions/runner/issues/1477. See the # c341ef145d2a0898c5900f64604b67b21d2ea5db commit for a # nested grouping implementation. From 6998a75c39422a9a62323f1abb0e6d8df377b5d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 00:30:48 +0100 Subject: [PATCH 16/42] Output about the number of tests --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index a785dd5fb..f23abd69a 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -36,6 +36,8 @@ $tests = dotnet sln list | -not [string]::IsNullOrEmpty($result) -and $result.Contains("The following Tests are available") } +Write-Output "Starting to execute tests from $($tests.Length) projects." + foreach ($test in $tests) { # This could benefit from grouping, above the level of the potential groups created by the tests (the Lombiq UI # Testing Toolbox adds per-test groups too). However, there's no nested grouping, see From 220d72918273938ba49ae47a30e2366d7e533f94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 00:33:29 +0100 Subject: [PATCH 17/42] Output about test execution start --- .github/actions/test-dotnet/Invoke-SolutionTests.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 index f23abd69a..006415e1c 100644 --- a/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 +++ b/.github/actions/test-dotnet/Invoke-SolutionTests.ps1 @@ -44,6 +44,8 @@ foreach ($test in $tests) { # https://github.com/actions/runner/issues/1477. See the # c341ef145d2a0898c5900f64604b67b21d2ea5db commit for a # nested grouping implementation. + Write-Output "Starting to execute tests from the $test project." + $dotnetTestSwitches = @( '--configuration', 'Release' '--no-restore', From e81ce27a4d71dc4ff71c76c11f372b08a9a54336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 00:45:35 +0100 Subject: [PATCH 18/42] Debug output for workflow cancellation --- .github/actions/cancel-workflow/action.yml | 5 +++++ .github/workflows/build-and-test-orchard-core.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 880634a2a..3ae0c5cfb 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -6,6 +6,11 @@ description: > runs: using: "composite" steps: + - env: + GITHUB_CONTEXT: ${{ toJSON(github) }} + shell: bash + run: echo "$GITHUB_CONTEXT"" + - name: Cancel Workflow # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index c1ec852d0..b097b37ef 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -162,6 +162,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/OSOE-464 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 84141ba3cf128d2eca865d70568bddf678e40208 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:01:23 +0100 Subject: [PATCH 19/42] Perhaps exit 1 will make the run fail? --- .github/actions/cancel-workflow/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 3ae0c5cfb..a8b5058ec 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -9,7 +9,7 @@ runs: - env: GITHUB_CONTEXT: ${{ toJSON(github) }} shell: bash - run: echo "$GITHUB_CONTEXT"" + run: echo "$GITHUB_CONTEXT" - name: Cancel Workflow # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. @@ -19,3 +19,4 @@ runs: $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} Invoke-WebRequest $url -Headers $headers -Method Post + exit 1 From 5a9a831e8d4e6972e86b1f7a66b1beeb9ad786dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:04:49 +0100 Subject: [PATCH 20/42] Removing debug code --- .github/actions/cancel-workflow/action.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index a8b5058ec..1bbb9eebd 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -6,11 +6,6 @@ description: > runs: using: "composite" steps: - - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - shell: bash - run: echo "$GITHUB_CONTEXT" - - name: Cancel Workflow # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false From 4912bec89be7a4798b9322654d47a05dd7e5f18a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:06:14 +0100 Subject: [PATCH 21/42] Error output for better understanding when canceling the workflow --- .github/actions/cancel-workflow/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 1bbb9eebd..2cf850cd2 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -11,6 +11,7 @@ runs: if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false shell: pwsh run: | + Write-Output "::error::Canceling workflow due to one of the jobs failing." $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} Invoke-WebRequest $url -Headers $headers -Method Post From 7827fa4a437dc927dfb131d7094436b2f4cb6402 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:20:30 +0100 Subject: [PATCH 22/42] Exit 1 is of no use --- .github/actions/cancel-workflow/action.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 2cf850cd2..31270a15f 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -15,4 +15,3 @@ runs: $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} Invoke-WebRequest $url -Headers $headers -Method Post - exit 1 From 9a5b62abcaef25f75bbb3a8e2be52d779d6f2f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:25:51 +0100 Subject: [PATCH 23/42] Temporarily disabling .NET setup --- .github/workflows/build-and-test-orchard-core.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index b097b37ef..873100dd8 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -118,10 +118,10 @@ jobs: with: submodules: 'recursive' - - name: Set up .NET - uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev - with: - dotnet-version: ${{ inputs.dotnet-version }} + #- name: Set up .NET + # uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + # with: + # dotnet-version: ${{ inputs.dotnet-version }} - name: Verify that .NET packages are consolidated if: ${{ inputs.verify-dotnet-consolidation }} From 7f4e3e929a39e45540d62782bc84f89334fcfb9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:26:10 +0100 Subject: [PATCH 24/42] JS action skeleton for post-job workflow cancelation --- .github/actions/cancel-workflow/action.yml | 17 ++++++----------- .github/actions/cancel-workflow/main.js | 1 + .github/actions/cancel-workflow/post.js | 10 ++++++++++ 3 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 .github/actions/cancel-workflow/main.js create mode 100644 .github/actions/cancel-workflow/post.js diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 31270a15f..4c9e3eae1 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -4,14 +4,9 @@ description: > fails. runs: - using: "composite" - steps: - - name: Cancel Workflow - # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. - if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false - shell: pwsh - run: | - Write-Output "::error::Canceling workflow due to one of the jobs failing." - $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" - $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} - Invoke-WebRequest $url -Headers $headers -Method Post + # Only JavaScript actions can contain post-scripts. + using: "node16" + main: "main.js" + # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. + post-if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false + post: "post.js" diff --git a/.github/actions/cancel-workflow/main.js b/.github/actions/cancel-workflow/main.js new file mode 100644 index 000000000..571de1e5b --- /dev/null +++ b/.github/actions/cancel-workflow/main.js @@ -0,0 +1 @@ +// We don't need to do anything here. diff --git a/.github/actions/cancel-workflow/post.js b/.github/actions/cancel-workflow/post.js new file mode 100644 index 000000000..185b1c801 --- /dev/null +++ b/.github/actions/cancel-workflow/post.js @@ -0,0 +1,10 @@ +const core = require('@actions/core'); +const github = require('@actions/github'); + +try { + console.log(`Hello!`); + const payload = JSON.stringify(github.context.payload, undefined, 2) + console.log(`The event payload: ${payload}`); +} catch (error) { + core.setFailed(error.message); +} From 829c2986fe4d95fb7e743308325661df367f00f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:28:51 +0100 Subject: [PATCH 25/42] Trying curious syntax for post-job commands --- .../workflows/build-and-test-orchard-core.yml | 53 +++---------------- 1 file changed, 7 insertions(+), 46 deletions(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 873100dd8..fd859f10c 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -118,50 +118,11 @@ jobs: with: submodules: 'recursive' - #- name: Set up .NET - # uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev - # with: - # dotnet-version: ${{ inputs.dotnet-version }} + - id: post-run-command + needs: non-existent-command + if: ${{ always() }} + run: echo "this thing works!" - - name: Verify that .NET packages are consolidated - if: ${{ inputs.verify-dotnet-consolidation }} - uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev - with: - directory: ${{ inputs.build-directory }} - - - name: Enable Node corepack - uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev - - - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/OSOE-464 - with: - directory: ${{ inputs.build-directory }} - verbosity: ${{ inputs.build-verbosity }} - enable-code-analysis: ${{ inputs.build-enable-code-analysis }} - enable-nuget-caching: ${{ inputs.build-enable-nuget-caching }} - enable-npm-caching: ${{ inputs.build-enable-npm-caching }} - cache-version: ${{ inputs.build-cache-version }} - - - name: Set up SQL Server - if: inputs.set-up-sql-server == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@dev - - - name: Set up Azurite - if: inputs.set-up-azurite == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@dev - with: - location: ${{ inputs.build-directory}} - - - name: Tests - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/OSOE-464 - with: - build-directory: ${{ inputs.build-directory }} - test-verbosity: ${{ inputs.build-verbosity }} - test-filter: ${{ inputs.test-filter }} - ui-test-parallelism: ${{ inputs.ui-test-parallelism }} - - - name: Cancel Workflow on Failure - if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/OSOE-464 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - id: non-existent-command + name: 'Running an non-existing command will fail...' + run: run something that does not exist; From 1f56faccc31c6451b4335d247d466ef50fbec64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:34:08 +0100 Subject: [PATCH 26/42] Adding package.json for action --- package-lock.json | 427 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 6 + 2 files changed, 433 insertions(+) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..88698e317 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,427 @@ +{ + "name": "Lombiq.GitHub.Actions", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "dependencies": { + "@actions/core": "^1.10.0", + "@actions/github": "^5.1.1" + } + }, + "node_modules/@actions/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", + "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", + "dependencies": { + "@actions/http-client": "^2.0.1", + "uuid": "^8.3.2" + } + }, + "node_modules/@actions/github": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz", + "integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==", + "dependencies": { + "@actions/http-client": "^2.0.1", + "@octokit/core": "^3.6.0", + "@octokit/plugin-paginate-rest": "^2.17.0", + "@octokit/plugin-rest-endpoint-methods": "^5.13.0" + } + }, + "node_modules/@actions/http-client": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz", + "integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==", + "dependencies": { + "tunnel": "^0.0.6" + } + }, + "node_modules/@octokit/auth-token": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", + "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", + "dependencies": { + "@octokit/types": "^6.0.3" + } + }, + "node_modules/@octokit/core": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", + "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", + "dependencies": { + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.6.3", + "@octokit/request-error": "^2.0.5", + "@octokit/types": "^6.0.3", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/endpoint": { + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", + "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "dependencies": { + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/graphql": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", + "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", + "dependencies": { + "@octokit/request": "^5.6.0", + "@octokit/types": "^6.0.3", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/openapi-types": { + "version": "12.11.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" + }, + "node_modules/@octokit/plugin-paginate-rest": { + "version": "2.21.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", + "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", + "dependencies": { + "@octokit/types": "^6.40.0" + }, + "peerDependencies": { + "@octokit/core": ">=2" + } + }, + "node_modules/@octokit/plugin-rest-endpoint-methods": { + "version": "5.16.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", + "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", + "dependencies": { + "@octokit/types": "^6.39.0", + "deprecation": "^2.3.1" + }, + "peerDependencies": { + "@octokit/core": ">=3" + } + }, + "node_modules/@octokit/request": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", + "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "dependencies": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" + } + }, + "node_modules/@octokit/request-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "dependencies": { + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" + } + }, + "node_modules/@octokit/types": { + "version": "6.41.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", + "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", + "dependencies": { + "@octokit/openapi-types": "^12.11.0" + } + }, + "node_modules/before-after-hook": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" + }, + "node_modules/deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" + }, + "node_modules/is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "engines": { + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + } + }, + "node_modules/universal-user-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + } + }, + "dependencies": { + "@actions/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", + "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", + "requires": { + "@actions/http-client": "^2.0.1", + "uuid": "^8.3.2" + } + }, + "@actions/github": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz", + "integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==", + "requires": { + "@actions/http-client": "^2.0.1", + "@octokit/core": "^3.6.0", + "@octokit/plugin-paginate-rest": "^2.17.0", + "@octokit/plugin-rest-endpoint-methods": "^5.13.0" + } + }, + "@actions/http-client": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz", + "integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==", + "requires": { + "tunnel": "^0.0.6" + } + }, + "@octokit/auth-token": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", + "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", + "requires": { + "@octokit/types": "^6.0.3" + } + }, + "@octokit/core": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", + "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", + "requires": { + "@octokit/auth-token": "^2.4.4", + "@octokit/graphql": "^4.5.8", + "@octokit/request": "^5.6.3", + "@octokit/request-error": "^2.0.5", + "@octokit/types": "^6.0.3", + "before-after-hook": "^2.2.0", + "universal-user-agent": "^6.0.0" + } + }, + "@octokit/endpoint": { + "version": "6.0.12", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", + "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", + "requires": { + "@octokit/types": "^6.0.3", + "is-plain-object": "^5.0.0", + "universal-user-agent": "^6.0.0" + } + }, + "@octokit/graphql": { + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", + "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", + "requires": { + "@octokit/request": "^5.6.0", + "@octokit/types": "^6.0.3", + "universal-user-agent": "^6.0.0" + } + }, + "@octokit/openapi-types": { + "version": "12.11.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", + "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" + }, + "@octokit/plugin-paginate-rest": { + "version": "2.21.3", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", + "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", + "requires": { + "@octokit/types": "^6.40.0" + } + }, + "@octokit/plugin-rest-endpoint-methods": { + "version": "5.16.2", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", + "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", + "requires": { + "@octokit/types": "^6.39.0", + "deprecation": "^2.3.1" + } + }, + "@octokit/request": { + "version": "5.6.3", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", + "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", + "requires": { + "@octokit/endpoint": "^6.0.1", + "@octokit/request-error": "^2.1.0", + "@octokit/types": "^6.16.1", + "is-plain-object": "^5.0.0", + "node-fetch": "^2.6.7", + "universal-user-agent": "^6.0.0" + } + }, + "@octokit/request-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", + "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", + "requires": { + "@octokit/types": "^6.0.3", + "deprecation": "^2.0.0", + "once": "^1.4.0" + } + }, + "@octokit/types": { + "version": "6.41.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", + "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", + "requires": { + "@octokit/openapi-types": "^12.11.0" + } + }, + "before-after-hook": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", + "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" + }, + "deprecation": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", + "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" + }, + "is-plain-object": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", + "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==" + }, + "node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "requires": { + "wrappy": "1" + } + }, + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" + }, + "universal-user-agent": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", + "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" + }, + "uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" + }, + "webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 000000000..a96063f57 --- /dev/null +++ b/package.json @@ -0,0 +1,6 @@ +{ + "dependencies": { + "@actions/core": "^1.10.0", + "@actions/github": "^5.1.1" + } +} From 96383e0ef97d9ca44c209e87b37aa46085251bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:35:11 +0100 Subject: [PATCH 27/42] Revert "Trying curious syntax for post-job commands" This reverts commit 829c2986fe4d95fb7e743308325661df367f00f9. --- .../workflows/build-and-test-orchard-core.yml | 53 ++++++++++++++++--- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index fd859f10c..873100dd8 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -118,11 +118,50 @@ jobs: with: submodules: 'recursive' - - id: post-run-command - needs: non-existent-command - if: ${{ always() }} - run: echo "this thing works!" + #- name: Set up .NET + # uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + # with: + # dotnet-version: ${{ inputs.dotnet-version }} - - id: non-existent-command - name: 'Running an non-existing command will fail...' - run: run something that does not exist; + - name: Verify that .NET packages are consolidated + if: ${{ inputs.verify-dotnet-consolidation }} + uses: Lombiq/GitHub-Actions/.github/actions/verify-dotnet-consolidation@dev + with: + directory: ${{ inputs.build-directory }} + + - name: Enable Node corepack + uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev + + - name: Build and Static Code Analysis + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/OSOE-464 + with: + directory: ${{ inputs.build-directory }} + verbosity: ${{ inputs.build-verbosity }} + enable-code-analysis: ${{ inputs.build-enable-code-analysis }} + enable-nuget-caching: ${{ inputs.build-enable-nuget-caching }} + enable-npm-caching: ${{ inputs.build-enable-npm-caching }} + cache-version: ${{ inputs.build-cache-version }} + + - name: Set up SQL Server + if: inputs.set-up-sql-server == 'true' + uses: Lombiq/GitHub-Actions/.github/actions/setup-sql-server@dev + + - name: Set up Azurite + if: inputs.set-up-azurite == 'true' + uses: Lombiq/GitHub-Actions/.github/actions/setup-azurite@dev + with: + location: ${{ inputs.build-directory}} + + - name: Tests + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/OSOE-464 + with: + build-directory: ${{ inputs.build-directory }} + test-verbosity: ${{ inputs.build-verbosity }} + test-filter: ${{ inputs.test-filter }} + ui-test-parallelism: ${{ inputs.ui-test-parallelism }} + + - name: Cancel Workflow on Failure + if: failure() && inputs.cancel-workflow-on-failure == 'true' + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/OSOE-464 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 187e1d8f7e0086323fc596e27c8332f6c03b5142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:36:40 +0100 Subject: [PATCH 28/42] Moving package.json to action folder --- .../actions/cancel-workflow/package-lock.json | 0 package.json => .github/actions/cancel-workflow/package.json | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename package-lock.json => .github/actions/cancel-workflow/package-lock.json (100%) rename package.json => .github/actions/cancel-workflow/package.json (100%) diff --git a/package-lock.json b/.github/actions/cancel-workflow/package-lock.json similarity index 100% rename from package-lock.json rename to .github/actions/cancel-workflow/package-lock.json diff --git a/package.json b/.github/actions/cancel-workflow/package.json similarity index 100% rename from package.json rename to .github/actions/cancel-workflow/package.json From 92eb9f78f253b432b0068b6920cbc3773454b5cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:43:49 +0100 Subject: [PATCH 29/42] Back to composite action --- .github/actions/cancel-workflow/action.yml | 17 +- .github/actions/cancel-workflow/main.js | 1 - .../actions/cancel-workflow/package-lock.json | 427 ------------------ .github/actions/cancel-workflow/package.json | 6 - .github/actions/cancel-workflow/post.js | 10 - 5 files changed, 11 insertions(+), 450 deletions(-) delete mode 100644 .github/actions/cancel-workflow/main.js delete mode 100644 .github/actions/cancel-workflow/package-lock.json delete mode 100644 .github/actions/cancel-workflow/package.json delete mode 100644 .github/actions/cancel-workflow/post.js diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 4c9e3eae1..31270a15f 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -4,9 +4,14 @@ description: > fails. runs: - # Only JavaScript actions can contain post-scripts. - using: "node16" - main: "main.js" - # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. - post-if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false - post: "post.js" + using: "composite" + steps: + - name: Cancel Workflow + # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. + if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false + shell: pwsh + run: | + Write-Output "::error::Canceling workflow due to one of the jobs failing." + $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" + $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} + Invoke-WebRequest $url -Headers $headers -Method Post diff --git a/.github/actions/cancel-workflow/main.js b/.github/actions/cancel-workflow/main.js deleted file mode 100644 index 571de1e5b..000000000 --- a/.github/actions/cancel-workflow/main.js +++ /dev/null @@ -1 +0,0 @@ -// We don't need to do anything here. diff --git a/.github/actions/cancel-workflow/package-lock.json b/.github/actions/cancel-workflow/package-lock.json deleted file mode 100644 index 88698e317..000000000 --- a/.github/actions/cancel-workflow/package-lock.json +++ /dev/null @@ -1,427 +0,0 @@ -{ - "name": "Lombiq.GitHub.Actions", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "dependencies": { - "@actions/core": "^1.10.0", - "@actions/github": "^5.1.1" - } - }, - "node_modules/@actions/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", - "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", - "dependencies": { - "@actions/http-client": "^2.0.1", - "uuid": "^8.3.2" - } - }, - "node_modules/@actions/github": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz", - "integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==", - "dependencies": { - "@actions/http-client": "^2.0.1", - "@octokit/core": "^3.6.0", - "@octokit/plugin-paginate-rest": "^2.17.0", - "@octokit/plugin-rest-endpoint-methods": "^5.13.0" - } - }, - "node_modules/@actions/http-client": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz", - "integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==", - "dependencies": { - "tunnel": "^0.0.6" - } - }, - "node_modules/@octokit/auth-token": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", - "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", - "dependencies": { - "@octokit/types": "^6.0.3" - } - }, - "node_modules/@octokit/core": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", - "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", - "dependencies": { - "@octokit/auth-token": "^2.4.4", - "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.6.3", - "@octokit/request-error": "^2.0.5", - "@octokit/types": "^6.0.3", - "before-after-hook": "^2.2.0", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/endpoint": { - "version": "6.0.12", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", - "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", - "dependencies": { - "@octokit/types": "^6.0.3", - "is-plain-object": "^5.0.0", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/graphql": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", - "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", - "dependencies": { - "@octokit/request": "^5.6.0", - "@octokit/types": "^6.0.3", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/openapi-types": { - "version": "12.11.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", - "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" - }, - "node_modules/@octokit/plugin-paginate-rest": { - "version": "2.21.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", - "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", - "dependencies": { - "@octokit/types": "^6.40.0" - }, - "peerDependencies": { - "@octokit/core": ">=2" - } - }, - "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "5.16.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", - "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", - "dependencies": { - "@octokit/types": "^6.39.0", - "deprecation": "^2.3.1" - }, - "peerDependencies": { - "@octokit/core": ">=3" - } - }, - "node_modules/@octokit/request": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", - "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", - "dependencies": { - "@octokit/endpoint": "^6.0.1", - "@octokit/request-error": "^2.1.0", - "@octokit/types": "^6.16.1", - "is-plain-object": "^5.0.0", - "node-fetch": "^2.6.7", - "universal-user-agent": "^6.0.0" - } - }, - "node_modules/@octokit/request-error": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", - "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", - "dependencies": { - "@octokit/types": "^6.0.3", - "deprecation": "^2.0.0", - "once": "^1.4.0" - } - }, - "node_modules/@octokit/types": { - "version": "6.41.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", - "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", - "dependencies": { - "@octokit/openapi-types": "^12.11.0" - } - }, - "node_modules/before-after-hook": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", - "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" - }, - "node_modules/deprecation": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" - }, - "node_modules/is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/tunnel": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", - "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", - "engines": { - "node": ">=0.6.11 <=0.7.0 || >=0.7.3" - } - }, - "node_modules/universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - } - }, - "dependencies": { - "@actions/core": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", - "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", - "requires": { - "@actions/http-client": "^2.0.1", - "uuid": "^8.3.2" - } - }, - "@actions/github": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.1.tgz", - "integrity": "sha512-Nk59rMDoJaV+mHCOJPXuvB1zIbomlKS0dmSIqPGxd0enAXBnOfn4VWF+CGtRCwXZG9Epa54tZA7VIRlJDS8A6g==", - "requires": { - "@actions/http-client": "^2.0.1", - "@octokit/core": "^3.6.0", - "@octokit/plugin-paginate-rest": "^2.17.0", - "@octokit/plugin-rest-endpoint-methods": "^5.13.0" - } - }, - "@actions/http-client": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz", - "integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==", - "requires": { - "tunnel": "^0.0.6" - } - }, - "@octokit/auth-token": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", - "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", - "requires": { - "@octokit/types": "^6.0.3" - } - }, - "@octokit/core": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", - "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", - "requires": { - "@octokit/auth-token": "^2.4.4", - "@octokit/graphql": "^4.5.8", - "@octokit/request": "^5.6.3", - "@octokit/request-error": "^2.0.5", - "@octokit/types": "^6.0.3", - "before-after-hook": "^2.2.0", - "universal-user-agent": "^6.0.0" - } - }, - "@octokit/endpoint": { - "version": "6.0.12", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", - "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", - "requires": { - "@octokit/types": "^6.0.3", - "is-plain-object": "^5.0.0", - "universal-user-agent": "^6.0.0" - } - }, - "@octokit/graphql": { - "version": "4.8.0", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", - "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", - "requires": { - "@octokit/request": "^5.6.0", - "@octokit/types": "^6.0.3", - "universal-user-agent": "^6.0.0" - } - }, - "@octokit/openapi-types": { - "version": "12.11.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", - "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" - }, - "@octokit/plugin-paginate-rest": { - "version": "2.21.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", - "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", - "requires": { - "@octokit/types": "^6.40.0" - } - }, - "@octokit/plugin-rest-endpoint-methods": { - "version": "5.16.2", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", - "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", - "requires": { - "@octokit/types": "^6.39.0", - "deprecation": "^2.3.1" - } - }, - "@octokit/request": { - "version": "5.6.3", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", - "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", - "requires": { - "@octokit/endpoint": "^6.0.1", - "@octokit/request-error": "^2.1.0", - "@octokit/types": "^6.16.1", - "is-plain-object": "^5.0.0", - "node-fetch": "^2.6.7", - "universal-user-agent": "^6.0.0" - } - }, - "@octokit/request-error": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", - "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", - "requires": { - "@octokit/types": "^6.0.3", - "deprecation": "^2.0.0", - "once": "^1.4.0" - } - }, - "@octokit/types": { - "version": "6.41.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", - "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", - "requires": { - "@octokit/openapi-types": "^12.11.0" - } - }, - "before-after-hook": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", - "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" - }, - "deprecation": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", - "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" - }, - "is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==" - }, - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "requires": { - "whatwg-url": "^5.0.0" - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "requires": { - "wrappy": "1" - } - }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "tunnel": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", - "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" - }, - "universal-user-agent": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", - "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - } - } -} diff --git a/.github/actions/cancel-workflow/package.json b/.github/actions/cancel-workflow/package.json deleted file mode 100644 index a96063f57..000000000 --- a/.github/actions/cancel-workflow/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "dependencies": { - "@actions/core": "^1.10.0", - "@actions/github": "^5.1.1" - } -} diff --git a/.github/actions/cancel-workflow/post.js b/.github/actions/cancel-workflow/post.js deleted file mode 100644 index 185b1c801..000000000 --- a/.github/actions/cancel-workflow/post.js +++ /dev/null @@ -1,10 +0,0 @@ -const core = require('@actions/core'); -const github = require('@actions/github'); - -try { - console.log(`Hello!`); - const payload = JSON.stringify(github.context.payload, undefined, 2) - console.log(`The event payload: ${payload}`); -} catch (error) { - core.setFailed(error.message); -} From 3825d1e93add784df4eca11b20aa5e732ec209b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:46:45 +0100 Subject: [PATCH 30/42] Trying webiny/action-post-run --- .github/actions/cancel-workflow/action.yml | 4 +++- .github/workflows/build-and-test-orchard-core.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 31270a15f..022ef196f 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -6,10 +6,12 @@ description: > runs: using: "composite" steps: + # Only JavaScript actions can contain post-scripts. So either that, or we use this action. - name: Cancel Workflow # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false - shell: pwsh + # Post-2.0.1 commit. + uses: webiny/action-post-run@c09eade5dd0a57b254f766ff7bc3f5725ab5adb4 run: | Write-Output "::error::Canceling workflow due to one of the jobs failing." $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 873100dd8..191485dac 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -109,7 +109,7 @@ jobs: # https://github.com/actions/runner/issues/1555. strategy: matrix: - machine-type: ${{ fromJson(inputs.machine-types) }} + machine-type: [ubuntu-latest, windows-latest] timeout-minutes: - ${{ inputs.timeout-minutes }} timeout-minutes: ${{ matrix.timeout-minutes }} From 9fa4d0bef1199c996bd9cc0cf5b66aeeea1e46e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:47:50 +0100 Subject: [PATCH 31/42] Syntax --- .github/actions/cancel-workflow/action.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 022ef196f..69c907d3d 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -12,8 +12,9 @@ runs: if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false # Post-2.0.1 commit. uses: webiny/action-post-run@c09eade5dd0a57b254f766ff7bc3f5725ab5adb4 - run: | - Write-Output "::error::Canceling workflow due to one of the jobs failing." - $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" - $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} - Invoke-WebRequest $url -Headers $headers -Method Post + with: + run: | + Write-Output "::error::Canceling workflow due to one of the jobs failing." + $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" + $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} + Invoke-WebRequest $url -Headers $headers -Method Post From 829fa11314d14773b463c9d02bd88e26317ba843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:52:49 +0100 Subject: [PATCH 32/42] Separate PS file --- .../actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 | 6 ++++++ .github/actions/cancel-workflow/action.yml | 6 +----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 .github/actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 diff --git a/.github/actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 b/.github/actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 new file mode 100644 index 000000000..841ef9559 --- /dev/null +++ b/.github/actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 @@ -0,0 +1,6 @@ +param ($Repository, $RunId) + +Write-Output "::error::Canceling workflow due to one of the jobs failing." +$url = "https://api.github.com/repos/$Repository/actions/runs/$RunId/cancel" +$headers = @{"Authorization" = "Bearer $($Env:GITHUB_TOKEN)"; "Accept" = "application/vnd.github+json"} +Invoke-WebRequest $url -Headers $headers -Method Post diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 69c907d3d..fba2ab0f4 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -13,8 +13,4 @@ runs: # Post-2.0.1 commit. uses: webiny/action-post-run@c09eade5dd0a57b254f766ff7bc3f5725ab5adb4 with: - run: | - Write-Output "::error::Canceling workflow due to one of the jobs failing." - $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" - $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} - Invoke-WebRequest $url -Headers $headers -Method Post + run: Invoke-WorkflowCancellation.ps1 ${{ github.repository }} ${{ github.run_id }} From 9795fed907ac2c983ceb7901536e6b0d4b6fe799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 01:54:53 +0100 Subject: [PATCH 33/42] Path to script file --- .github/actions/cancel-workflow/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index fba2ab0f4..a72547397 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -13,4 +13,4 @@ runs: # Post-2.0.1 commit. uses: webiny/action-post-run@c09eade5dd0a57b254f766ff7bc3f5725ab5adb4 with: - run: Invoke-WorkflowCancellation.ps1 ${{ github.repository }} ${{ github.run_id }} + run: ${{ github.action_path }}/Invoke-WorkflowCancellation.ps1 ${{ github.repository }} ${{ github.run_id }} From e30a5367cde60a0cc1e9c108fda416e99cdbb143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 02:03:43 +0100 Subject: [PATCH 34/42] Files don't work, let's try curl --- .../cancel-workflow/Invoke-WorkflowCancellation.ps1 | 6 ------ .github/actions/cancel-workflow/action.yml | 7 ++++++- 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 .github/actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 diff --git a/.github/actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 b/.github/actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 deleted file mode 100644 index 841ef9559..000000000 --- a/.github/actions/cancel-workflow/Invoke-WorkflowCancellation.ps1 +++ /dev/null @@ -1,6 +0,0 @@ -param ($Repository, $RunId) - -Write-Output "::error::Canceling workflow due to one of the jobs failing." -$url = "https://api.github.com/repos/$Repository/actions/runs/$RunId/cancel" -$headers = @{"Authorization" = "Bearer $($Env:GITHUB_TOKEN)"; "Accept" = "application/vnd.github+json"} -Invoke-WebRequest $url -Headers $headers -Method Post diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index a72547397..56ee74b37 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -13,4 +13,9 @@ runs: # Post-2.0.1 commit. uses: webiny/action-post-run@c09eade5dd0a57b254f766ff7bc3f5725ab5adb4 with: - run: ${{ github.action_path }}/Invoke-WorkflowCancellation.ps1 ${{ github.repository }} ${{ github.run_id }} + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ env.GITHUB_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel From 4f933032dfecee504e1b9058a15355c9aeeb0b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 02:06:27 +0100 Subject: [PATCH 35/42] Windows test --- .github/workflows/build-and-test-orchard-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 191485dac..8888f52a2 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -109,7 +109,7 @@ jobs: # https://github.com/actions/runner/issues/1555. strategy: matrix: - machine-type: [ubuntu-latest, windows-latest] + machine-type: [windows-latest] timeout-minutes: - ${{ inputs.timeout-minutes }} timeout-minutes: ${{ matrix.timeout-minutes }} From acb5f5fdadbe4d8cddd7e6f182764ffd2f280036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 02:13:04 +0100 Subject: [PATCH 36/42] Syntax fix --- .github/actions/cancel-workflow/action.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index 56ee74b37..a62f98ff4 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -13,9 +13,6 @@ runs: # Post-2.0.1 commit. uses: webiny/action-post-run@c09eade5dd0a57b254f766ff7bc3f5725ab5adb4 with: + # Needs to be one line so it's cross-platform. run: | - curl \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer ${{ env.GITHUB_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel + curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ env.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel From 6865a0bd0d4dca381c62085e323e0ab46d25df2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 02:18:26 +0100 Subject: [PATCH 37/42] Back to original action with docs --- .github/actions/cancel-workflow/action.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/actions/cancel-workflow/action.yml b/.github/actions/cancel-workflow/action.yml index a62f98ff4..e85419d97 100644 --- a/.github/actions/cancel-workflow/action.yml +++ b/.github/actions/cancel-workflow/action.yml @@ -1,18 +1,23 @@ name: Cancel Workflow description: > Cancels the current workflow run, i.e. all jobs. Useful if you want to cancel the rest of the workflow when one job - fails. + fails. Note that this will cause the workflow to appear cancelled, not failed. + +# Cancelling the workflow in a post-script (like this: +# https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runspost; can also be done with +# this action: https://github.com/webiny/action-post-run, see Git history of this file) wouldn't help the status, it +# would still be cancelled. It actually indeed is, but it would be nicer to set it to failed, but there seems to be no +# way to do this. runs: using: "composite" steps: - # Only JavaScript actions can contain post-scripts. So either that, or we use this action. - name: Cancel Workflow # Fork PRs won't have a token with write access to Actions, thus won't be able to cancel the workflow. if: github.event.pull_request == '' || github.event.pull_request.head.repo.fork == false - # Post-2.0.1 commit. - uses: webiny/action-post-run@c09eade5dd0a57b254f766ff7bc3f5725ab5adb4 - with: - # Needs to be one line so it's cross-platform. - run: | - curl -X POST -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ env.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel + shell: pwsh + run: | + Write-Output "::error::Canceling workflow due to one of the jobs failing." + $url = "https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/cancel" + $headers = @{"Authorization" = "Bearer ${{ env.GITHUB_TOKEN }}"; "Accept" = "application/vnd.github+json"} + Invoke-WebRequest $url -Headers $headers -Method Post From 0fdd7308bb38c3104db330565b976ab3fb57c4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 02:19:29 +0100 Subject: [PATCH 38/42] Revert machine-type handling --- .github/workflows/build-and-test-orchard-core.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 8888f52a2..873100dd8 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -109,7 +109,7 @@ jobs: # https://github.com/actions/runner/issues/1555. strategy: matrix: - machine-type: [windows-latest] + machine-type: ${{ fromJson(inputs.machine-types) }} timeout-minutes: - ${{ inputs.timeout-minutes }} timeout-minutes: ${{ matrix.timeout-minutes }} From 2965e67b0fb960ffbd3b87395ffed2138b913d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Leh=C3=B3czky?= Date: Wed, 16 Nov 2022 02:22:04 +0100 Subject: [PATCH 39/42] Re-activating .NET setup step --- .github/workflows/build-and-test-orchard-core.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index 873100dd8..b097b37ef 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -118,10 +118,10 @@ jobs: with: submodules: 'recursive' - #- name: Set up .NET - # uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev - # with: - # dotnet-version: ${{ inputs.dotnet-version }} + - name: Set up .NET + uses: Lombiq/GitHub-Actions/.github/actions/setup-dotnet@dev + with: + dotnet-version: ${{ inputs.dotnet-version }} - name: Verify that .NET packages are consolidated if: ${{ inputs.verify-dotnet-consolidation }} From 5b56a181370366f3905dacb85b9979fbe4bc30c8 Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Wed, 16 Nov 2022 11:01:18 +0100 Subject: [PATCH 40/42] Removing duplicates from spell check allowlists (allow.txt and expect.txt) --- .github/actions/spelling/allow.txt | 11 ----------- .github/actions/spelling/expect.txt | 2 -- 2 files changed, 13 deletions(-) diff --git a/.github/actions/spelling/allow.txt b/.github/actions/spelling/allow.txt index 88180499d..1bc5b4d3e 100644 --- a/.github/actions/spelling/allow.txt +++ b/.github/actions/spelling/allow.txt @@ -8,8 +8,6 @@ ISetup IShell IShortcuts ISmtp -ISmtp -ISql ISql IStore ISystem @@ -82,7 +80,6 @@ helppopulartopics hostnames inheritdoc isignal -isignal issetuprecipe itest johndoe @@ -131,7 +128,6 @@ websites whitelisted would've ASPNETCORE -ASPNETCORE Activatable Antiforgery Autherization @@ -157,12 +153,10 @@ IAuthorization IBab IBackground ICaching -ICaching ICant IChange IClass IClock -IClock ICollection IColumn ICompare @@ -249,8 +243,6 @@ ISearch ISecurity ISerializable IService -IService -ISession ISession ISet IShape @@ -260,12 +252,10 @@ IString ITaxonomy ITenant ITest -ITest ITested ITracking IUser IWeb -IWeb Intelli IntelliSense Interop @@ -284,7 +274,6 @@ Rowling Schoorstra Serializer Shouldly -Shouldly Sipke TClass TGenerator diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 64ed5e1a0..5f0a4537b 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -3,7 +3,6 @@ Argb Chro Cloudflare Cms -Cms CDNs EACCES EULA @@ -131,7 +130,6 @@ yaml yml Aig Airi -Airi BJRQ BOHq Bcc From fbdbebbadee1362f03bad4cfd7f951211a00b285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20El-Saig?= Date: Wed, 16 Nov 2022 12:00:29 +0100 Subject: [PATCH 41/42] Revert branch selectors. --- .github/workflows/build-and-test-orchard-core.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test-orchard-core.yml b/.github/workflows/build-and-test-orchard-core.yml index b097b37ef..6d74e249f 100644 --- a/.github/workflows/build-and-test-orchard-core.yml +++ b/.github/workflows/build-and-test-orchard-core.yml @@ -133,7 +133,7 @@ jobs: uses: Lombiq/GitHub-Actions/.github/actions/enable-corepack@dev - name: Build and Static Code Analysis - uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@issue/OSOE-464 + uses: Lombiq/GitHub-Actions/.github/actions/build-dotnet@dev with: directory: ${{ inputs.build-directory }} verbosity: ${{ inputs.build-verbosity }} @@ -153,7 +153,7 @@ jobs: location: ${{ inputs.build-directory}} - name: Tests - uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@issue/OSOE-464 + uses: Lombiq/GitHub-Actions/.github/actions/test-dotnet@dev with: build-directory: ${{ inputs.build-directory }} test-verbosity: ${{ inputs.build-verbosity }} @@ -162,6 +162,6 @@ jobs: - name: Cancel Workflow on Failure if: failure() && inputs.cancel-workflow-on-failure == 'true' - uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@issue/OSOE-464 + uses: Lombiq/GitHub-Actions/.github/actions/cancel-workflow@dev env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From f9d99634a0bdf50d8e0d90dba406210d3dfd8894 Mon Sep 17 00:00:00 2001 From: Benedek Farkas Date: Wed, 16 Nov 2022 12:22:47 +0100 Subject: [PATCH 42/42] Adding "publishsettings" to spell check expect list --- .github/actions/spelling/expect.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/spelling/expect.txt b/.github/actions/spelling/expect.txt index 5f0a4537b..90a25a947 100644 --- a/.github/actions/spelling/expect.txt +++ b/.github/actions/spelling/expect.txt @@ -99,6 +99,7 @@ postclean pragma prebuild preheader +publishsettings pwsh readdir search'f