Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/PSModule.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# This file is used to configure the Process-PSModule workflow.
# Reference:
# - https://github.com/PSModule/Process-PSModule?tab=readme-ov-file#configuration
# - https://github.com/PSModule/Process-PSModule/blob/main/docs/content/reference/settings.md

ImportantFilePatterns:
- '^src/'
- '^README\.md$'
- '^tests/'
- '^\.github/PSModule\.yml$'
- '^\.github/zensical\.toml$'
- '^\.github/workflows/'

Test:
CodeCoverage:
Expand All @@ -24,6 +32,7 @@ Linter:
env:
VALIDATE_BIOME_FORMAT: false
VALIDATE_BIOME_LINT: false
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
VALIDATE_JSCPD: false
VALIDATE_JSON_PRETTIER: false
VALIDATE_MARKDOWN_PRETTIER: false
Expand Down
75 changes: 0 additions & 75 deletions .github/mkdocs.yml

This file was deleted.

18 changes: 11 additions & 7 deletions .github/workflows/Process-PSModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
branches:
- main
pull_request:
branches:
- main
Expand All @@ -13,20 +16,21 @@ on:
- reopened
- synchronize
- labeled
- unlabeled

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: false

permissions:
contents: write
pull-requests: write
statuses: write
contents: read
pages: write
id-token: write

jobs:
Process-PSModule:
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@da180bac16b13bfbcdf08b2e4e221b5b49e5ff28 # v6.1.4
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v8
Comment thread
MariusStorhaug marked this conversation as resolved.
Dismissed
secrets:
APIKey: ${{ secrets.APIKey }}
PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}
GitHubAppClientId: ${{ secrets.SHELLY_CLIENT_ID }}
GitHubAppPrivateKey: ${{ secrets.SHELLY_PRIVATE_KEY }}
69 changes: 69 additions & 0 deletions .github/zensical.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[project]
site_name = "-{{ REPO_NAME }}-"
repo_name = "-{{ REPO_OWNER }}-/-{{ REPO_NAME }}-"
repo_url = "https://github.com/-{{ REPO_OWNER }}-/-{{ REPO_NAME }}-"

[project.theme]
variant = "classic"
language = "en"
logo = "Assets/icon.png"
favicon = "Assets/icon.png"
features = [
"navigation.instant",
"navigation.instant.progress",
"navigation.indexes",
"navigation.top",
"navigation.tracking",
"navigation.expand",
"search.suggest",
"search.highlight",
"content.code.copy"
]

[[project.theme.palette]]
media = "(prefers-color-scheme)"
toggle.icon = "lucide/sun-moon"
toggle.name = "Switch to dark mode"

[[project.theme.palette]]
media = "(prefers-color-scheme: dark)"
scheme = "slate"
primary = "black"
accent = "green"
toggle.icon = "lucide/moon"
toggle.name = "Switch to light mode"

[[project.theme.palette]]
media = "(prefers-color-scheme: light)"
scheme = "default"
primary = "indigo"
accent = "green"
toggle.icon = "lucide/sun"
toggle.name = "Switch to system preference"

[project.theme.icon]
repo = "fontawesome/brands/github"

[project.markdown_extensions.toc]
permalink = true

[project.markdown_extensions.attr_list]
[project.markdown_extensions.admonition]
[project.markdown_extensions.md_in_html]
[project.markdown_extensions.pymdownx.details]
[project.markdown_extensions.pymdownx.superfences]

[[project.extra.social]]
icon = "fontawesome/brands/discord"
link = "https://discord.gg/jedJWCPAhD"
name = "-{{ REPO_OWNER }}- on Discord"

[[project.extra.social]]
icon = "fontawesome/brands/github"
link = "https://github.com/-{{ REPO_OWNER }}-/"
name = "-{{ REPO_OWNER }}- on GitHub"

[project.extra.consent]
title = "Cookie consent"
description = "We use cookies to recognize your repeated visits and preferences, as well as to measure the effectiveness of our documentation and whether users find what they're searching for. With your consent, you're helping us to make our documentation better."
actions = ["accept", "reject"]
14 changes: 7 additions & 7 deletions tests/GoogleFonts.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.0.0'; MaximumVersion = '6.*' }
#Requires -Modules @{ ModuleName = 'Pester'; ModuleVersion = '6.1.0'; MaximumVersion = '6.*' }

Describe 'Module' {
Context 'Function: Get-GoogleFont' {
It 'Returns all fonts' {
$fonts = Get-GoogleFont
Write-Verbose ($fonts | Out-String) -Verbose
$fonts | Should -Not -BeNullOrEmpty
$fonts | Should-NotBeNull
}

It 'Returns a specific font' {
$font = Get-GoogleFont -Name 'Roboto'
Write-Verbose ($font | Out-String) -Verbose
$font | Should -Not -BeNullOrEmpty
$font | Should-NotBeNull
}
}

Context 'Function: Install-GoogleFont' {
It '[Install-GoogleFont] - Installs a font' {
{ Install-GoogleFont -Name 'Akshar' } | Should -Not -Throw
Get-Font -Name 'Akshar*' | Should -Not -BeNullOrEmpty
Install-GoogleFont -Name 'Akshar'
Get-Font -Name 'Akshar*' | Should-NotBeNull
}

# It '[Install-GoogleFont] - Installs all fonts' {
# { Install-GoogleFont -All -Verbose } | Should -Not -Throw
# Get-Font -Name 'Nabla*' | Should -Not -BeNullOrEmpty
# Install-GoogleFont -All -Verbose
# Get-Font -Name 'Nabla*' | Should-NotBeNull
# }
}
}
Loading