Skip to content
Closed
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
18 changes: 14 additions & 4 deletions .github/workflows/Build Module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,27 @@ on:

workflow_dispatch:

permissions:
contents: read

jobs:
test:
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
name: 🧪 Run Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:

- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: audit

- name: ✅ Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0

# Uncomment below to explore what modules/variables/env variables are available in the build image
- name: 📦 Modules and Variables Display
Expand All @@ -45,21 +55,21 @@ jobs:
run: Invoke-Build -File .\src\TheCleaners.build.ps1

- name: 🧪 Upload Pester Results
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: pester-results
path: .\src\Artifacts\testOutput
if-no-files-found: warn

- name: 📦 Upload Build
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: zip-archive
path: .\src\Archive
if-no-files-found: warn
# git-auto-commit-action only runs on Linux-based platforms.

- name: 💾 Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403 # v5.2.0
with:
commit_message: 'Commit Build'
12 changes: 10 additions & 2 deletions .github/workflows/Deploy MkDocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
# Allow manual triggering of the workflow.
workflow_dispatch:

permissions:
contents: read

jobs:

build:
Expand All @@ -27,11 +30,16 @@ jobs:
cancel-in-progress: true

steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: audit

- name: ✅ Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0

- name: 🐍 Setup Python
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.x' # specify the Python version

Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: Publish to PowerShell Gallery
on:
workflow_dispatch:
permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
with:
egress-policy: audit

- name: Clone Project Files
uses: actions/checkout@v4
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
- name: Publish PowerShell Module
shell: pwsh
run: |
Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
Binary file removed src/Archive/TheCleaners_0.0.15_20250311.031804.zip
Binary file not shown.
20 changes: 0 additions & 20 deletions src/Artifacts/Invoke-TheCleaners.ps1

This file was deleted.

Loading
Loading