Skip to content

Commit

Permalink
Add linting step for YAML files to GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tteguayco committed Dec 11, 2023
1 parent 93a6fda commit 7b77f33
Show file tree
Hide file tree
Showing 21 changed files with 57 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ jobs:
with:
machine-types: "['ubuntu-22.04']"

yaml-linting:
runs-on: ubuntu-22.04
steps:
- name: Run yamllint with custom config
run: yamllint -c .trunk/configs/.yamllint.yaml ./github

post-pull-request-checks-automation:
name: Post Pull Request Checks Automation
needs: [build-and-test-larger-runners, build-and-test-nuget-test, spelling, powershell-static-code-analysis]
Expand Down
8 changes: 8 additions & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*out
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
6 changes: 6 additions & 0 deletions .trunk/configs/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rules:
quoted-strings:
required: false
key-duplicates: {}
octal-values:
forbid-implicit-octal: true
20 changes: 20 additions & 0 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This file controls the behavior of Trunk: https://docs.trunk.io/cli
# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml
version: 0.1
cli:
version: 1.17.2
# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins)
plugins:
sources:
- id: trunk
ref: v1.3.0
uri: https://github.com/trunk-io/plugins
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
runtimes:
enabled:
- [email protected]
- [email protected]
# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration)
lint:
enabled:
- [email protected]
2 changes: 1 addition & 1 deletion src/Modules/Lombiq.ContentEditors
2 changes: 1 addition & 1 deletion src/Modules/Lombiq.DataTables
2 changes: 1 addition & 1 deletion src/Modules/Lombiq.Hosting.BuildVersionDisplay
2 changes: 1 addition & 1 deletion src/Modules/Lombiq.UIKit
2 changes: 1 addition & 1 deletion src/Themes/Lombiq.Hosting.MediaTheme
2 changes: 1 addition & 1 deletion test/Lombiq.UITestingToolbox
Submodule Lombiq.UITestingToolbox updated 61 files
+0 −4 Lombiq.Tests.UI.Samples/Lombiq.Tests.UI.Samples.csproj
+0 −2 Lombiq.Tests.UI.Samples/Readme.md
+4 −2 Lombiq.Tests.UI.Samples/Tests/AccessibilityTest.cs
+7 −4 Lombiq.Tests.UI.Samples/Tests/AzureBlobStorageTests.cs
+7 −3 Lombiq.Tests.UI.Samples/Tests/BasicOrchardFeaturesTests.cs
+20 −14 Lombiq.Tests.UI.Samples/Tests/BasicTests.cs
+4 −3 Lombiq.Tests.UI.Samples/Tests/BasicVisualVerificationTests.cs
+0 −114 Lombiq.Tests.UI.Samples/Tests/CustomZapAutomationFrameworkPlan.yml
+8 −4 Lombiq.Tests.UI.Samples/Tests/DatabaseSnapshotTests.cs
+5 −2 Lombiq.Tests.UI.Samples/Tests/EmailTests.cs
+17 −11 Lombiq.Tests.UI.Samples/Tests/ErrorHandlingTests.cs
+10 −7 Lombiq.Tests.UI.Samples/Tests/InteractiveModeTests.cs
+15 −10 Lombiq.Tests.UI.Samples/Tests/MonkeyTests.cs
+0 −47 Lombiq.Tests.UI.Samples/Tests/MultiBrowserTests.cs
+0 −157 Lombiq.Tests.UI.Samples/Tests/SecurityScanningTests.cs
+7 −4 Lombiq.Tests.UI.Samples/Tests/SqlServerTests.cs
+6 −3 Lombiq.Tests.UI.Samples/Tests/TenantTests.cs
+0 −1 Lombiq.Tests.UI.Samples/xunit.runner.json
+1 −1 Lombiq.Tests.UI.Shortcuts/Controllers/CurrentUserController.cs
+1 −1 Lombiq.Tests.UI.Shortcuts/Lombiq.Tests.UI.Shortcuts.csproj
+1 −1 Lombiq.Tests.UI.Tests.UI/TestCases/CustomAdminPrefixTestCases.cs
+3 −3 Lombiq.Tests.UI.Tests.UI/TestCases/SecurityShortcutsTestCases.cs
+1 −1 Lombiq.Tests.UI.Tests.UI/TestCases/WorkflowShortcutsTestCases.cs
+ Lombiq.Tests.UI/Docs/Attachments/ZapReportScreenshot.png
+1 −1 Lombiq.Tests.UI/Docs/Configuration.md
+0 −1 Lombiq.Tests.UI/Docs/CreatingTests.md
+0 −30 Lombiq.Tests.UI/Docs/SecurityScanning.md
+0 −1 Lombiq.Tests.UI/Docs/Tools.md
+0 −4 Lombiq.Tests.UI/Docs/Troubleshooting.md
+4 −49 Lombiq.Tests.UI/Extensions/FailureDumpUITestContextExtensions.cs
+11 −17 Lombiq.Tests.UI/Extensions/ShortcutsUITestContextExtensions.cs
+5 −30 Lombiq.Tests.UI/Extensions/TypedRouteUITestContextExtensions.cs
+1 −1 Lombiq.Tests.UI/Helpers/DirectoryHelper.cs
+4 −23 Lombiq.Tests.UI/Lombiq.Tests.UI.csproj
+0 −90 Lombiq.Tests.UI/OrchardCoreUITestBase.cs
+0 −25 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlanFragments/DisplayActiveScanRuleRuntimesScript.yml
+0 −12 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlanFragments/RequestorJob.yml
+0 −8 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlanFragments/SpiderAjaxJob.yml
+0 −14 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlanFragmentsPaths.cs
+0 −13 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlanPaths.cs
+0 −102 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlans/Baseline.yml
+0 −107 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlans/FullScan.yml
+0 −116 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlans/GraphQL.yml
+0 −107 Lombiq.Tests.UI/SecurityScanning/AutomationFrameworkPlans/OpenAPI.yml
+0 −265 Lombiq.Tests.UI/SecurityScanning/SecurityScanConfiguration.cs
+0 −15 Lombiq.Tests.UI/SecurityScanning/SecurityScanResult.cs
+0 −27 Lombiq.Tests.UI/SecurityScanning/SecurityScanningAssertionException.cs
+0 −36 Lombiq.Tests.UI/SecurityScanning/SecurityScanningConfiguration.cs
+0 −20 Lombiq.Tests.UI/SecurityScanning/SecurityScanningException.cs
+0 −163 Lombiq.Tests.UI/SecurityScanning/SecurityScanningUITestContextExtensions.cs
+0 −422 Lombiq.Tests.UI/SecurityScanning/YamlDocumentExtensions.cs
+0 −15 Lombiq.Tests.UI/SecurityScanning/YamlHelper.cs
+0 −25 Lombiq.Tests.UI/SecurityScanning/YamlNodeExtensions.cs
+0 −27 Lombiq.Tests.UI/SecurityScanning/ZapEnums.cs
+0 −248 Lombiq.Tests.UI/SecurityScanning/ZapManager.cs
+0 −4 Lombiq.Tests.UI/Services/OrchardCoreUITestExecutorConfiguration.cs
+1 −1 Lombiq.Tests.UI/Services/SmtpService.cs
+10 −4 Lombiq.Tests.UI/Services/SqlServerManager.cs
+2 −12 Lombiq.Tests.UI/Services/UITestContext.cs
+3 −28 Lombiq.Tests.UI/Services/UITestExecutionSession.cs
+0 −2 Readme.md
2 changes: 1 addition & 1 deletion tools/Lombiq.Analyzers.PowerShell
2 changes: 1 addition & 1 deletion tools/Lombiq.GitHub.Actions
Submodule Lombiq.GitHub.Actions updated 29 files
+0 −1 .github/actions/spelling/dictionaries/Liquid.txt
+14 −27 .github/actions/update-github-issue-and-pull-request/Update-GitHubIssueAndPullRequest.ps1
+4 −36 .github/workflows/build-and-test-dotnet.yml
+2 −34 .github/workflows/build-and-test-orchard-core.yml
+2 −2 .github/workflows/build-dotnet.yml
+3 −3 .github/workflows/deploy-orchard1-to-azure-app-service.yml
+5 −5 .github/workflows/deploy-to-azure-app-service.yml
+2 −34 .github/workflows/msbuild-and-test.yml
+1 −1 .github/workflows/publish-nuget.yml
+4 −3 .github/workflows/reset-azure-environment.yml
+1 −23 .github/workflows/spelling.yml
+3 −3 .github/workflows/swap-azure-web-app-slots.yml
+3 −3 .github/workflows/swap-orchard1-azure-web-app-slots.yml
+3 −3 .github/workflows/test-analysis-failure.yml
+1 −1 .github/workflows/validate-pull-request.yml
+13 −26 Docs/Actions.md
+1 −1 Docs/SpellCheckingConfiguration.md
+387 −26 Docs/Workflows.md
+0 −35 Docs/Workflows/AzureHosting/DeployToAzureAppService.md
+0 −30 Docs/Workflows/AzureHosting/ResetAzureEnvironment.md
+0 −31 Docs/Workflows/AzureHosting/SwapAzureWebAppSlots.md
+0 −22 Docs/Workflows/BuildDotNetCoreOrchardCore/BuildAndTestDotNetSolution.md
+0 −23 Docs/Workflows/BuildDotNetCoreOrchardCore/BuildAndTestOrchardCoreSolution.md
+0 −45 Docs/Workflows/Productivity/CreateJiraIssuesForCommunityActivities.md
+0 −46 Docs/Workflows/Productivity/PostPullRequestChecksAutomation.md
+0 −46 Docs/Workflows/Productivity/PublishNuGetPackage.md
+0 −53 Docs/Workflows/Productivity/SpellChecking.md
+0 −28 Docs/Workflows/Productivity/ValidatePullRequest.md
+0 −26 Docs/Workflows/Productivity/ValidateSubmodule.md

0 comments on commit 7b77f33

Please sign in to comment.