diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b92544a..f57e1e9 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,7 +9,3 @@ updates: directory: / # Location of package manifests schedule: interval: weekly - - package-ecosystem: nuget # See documentation for possible values - directory: / # Location of package manifests - schedule: - interval: weekly diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 5c9f300..d7650ae 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -27,3 +27,5 @@ jobs: uses: super-linter/super-linter@latest env: GITHUB_TOKEN: ${{ github.token }} + VALIDATE_MARKDOWN_PRETTIER: false + VALIDATE_YAML_PRETTIER: false diff --git a/.github/workflows/Nightly-Run.yml b/.github/workflows/Nightly-Run.yml index d5b5994..c25d806 100644 --- a/.github/workflows/Nightly-Run.yml +++ b/.github/workflows/Nightly-Run.yml @@ -7,8 +7,10 @@ on: permissions: contents: read + pull-requests: write + statuses: write jobs: Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/CI.yml@v2 + uses: PSModule/Process-PSModule/.github/workflows/CI.yml@v3 secrets: inherit diff --git a/.github/workflows/Process-PSModule.yml b/.github/workflows/Process-PSModule.yml index 76f9983..da48a8b 100644 --- a/.github/workflows/Process-PSModule.yml +++ b/.github/workflows/Process-PSModule.yml @@ -26,5 +26,5 @@ permissions: jobs: Process-PSModule: - uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v2 + uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v3 secrets: inherit diff --git a/src/public/Get-PSGalleryResource.ps1 b/src/functions/private/Get-PSGalleryResource.ps1 similarity index 100% rename from src/public/Get-PSGalleryResource.ps1 rename to src/functions/private/Get-PSGalleryResource.ps1 diff --git a/src/private/Update-PSGalleryResourceListing.ps1 b/src/functions/private/Update-PSGalleryResourceListing.ps1 similarity index 100% rename from src/private/Update-PSGalleryResourceListing.ps1 rename to src/functions/private/Update-PSGalleryResourceListing.ps1 diff --git a/src/public/Get-PSGalleryAPI.ps1 b/src/functions/public/Get-PSGalleryAPI.ps1 similarity index 100% rename from src/public/Get-PSGalleryAPI.ps1 rename to src/functions/public/Get-PSGalleryAPI.ps1 diff --git a/src/public/Hide-PowerShellGalleryItem.ps1 b/src/functions/public/Hide-PowerShellGalleryItem.ps1 similarity index 100% rename from src/public/Hide-PowerShellGalleryItem.ps1 rename to src/functions/public/Hide-PowerShellGalleryItem.ps1 diff --git a/src/public/Show-PowerShellGalleryItem.ps1 b/src/functions/public/Show-PowerShellGalleryItem.ps1 similarity index 100% rename from src/public/Show-PowerShellGalleryItem.ps1 rename to src/functions/public/Show-PowerShellGalleryItem.ps1 diff --git a/tests/PowerShellGallery.Tests.ps1 b/tests/PowerShellGallery.Tests.ps1 index 9e0219a..6dc1d1a 100644 --- a/tests/PowerShellGallery.Tests.ps1 +++ b/tests/PowerShellGallery.Tests.ps1 @@ -8,4 +8,19 @@ Param( Write-Verbose "Path to the module: [$Path]" -Verbose Describe 'PowerShellGallery' { + Context 'Function: Get-PSGalleryAPI' { + It 'Should not throw' { + { Get-PSGalleryAPI } | Should -Not -Throw + } + } + Context 'Function: Hide-PowerShellGalleryItem' { + It 'Should not throw' { + { Hide-PowerShellGalleryItem } | Should -Not -Throw + } + } + Context 'Function: Show-PowerShellGalleryItem' { + It 'Should not throw' { + { Show-PowerShellGalleryItem } | Should -Not -Throw + } + } }