Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
4dbec0f
Add initial test files and configurations for test repositories
MariusStorhaug Feb 21, 2025
8b654d6
Refactor GitHub Actions workflows to remove unnecessary parameters an…
MariusStorhaug Feb 21, 2025
262b5e7
Update test path in main.ps1 to point to the correct directory for PS…
MariusStorhaug Feb 21, 2025
dd476f7
Rename SettingsPath to SettingsFilePath in action.yml and update refe…
MariusStorhaug Feb 21, 2025
6c1c345
Update workflow configurations to use 'Settings' instead of 'TestType…
MariusStorhaug Feb 21, 2025
2bc0e8c
Update test path in action.yml to point to the correct directory for …
MariusStorhaug Feb 21, 2025
4f95096
Update test paths in workflow files to point to the correct subdirect…
MariusStorhaug Feb 21, 2025
be1a57d
Refactor workflow files to use a centralized ActionTestWorkflow and s…
MariusStorhaug Feb 21, 2025
3a9ad08
Remove unnecessary metadata and concurrency settings from ActionTestW…
MariusStorhaug Feb 21, 2025
25957e9
Update PSScriptAnalyzer settings and enhance rule documentation
MariusStorhaug Feb 21, 2025
d6d03ba
Update Rules.md to specify PowerShell code block for file location
MariusStorhaug Feb 21, 2025
12b3e73
Update README.md and add SettingsFileDocumentation.md for Invoke-Scri…
MariusStorhaug Feb 21, 2025
b3ab419
Remove unnecessary markdown formatting and license section from READM…
MariusStorhaug Feb 21, 2025
09d4a3a
Specify PowerShell syntax highlighting for settings file path in READ…
MariusStorhaug Feb 21, 2025
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
23 changes: 23 additions & 0 deletions .github/workflows/Action-Test-Src-Default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Action-Test [Src-Default]

run-name: "Action-Test [Src-Default] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"

on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
ActionTest:
uses: ./.github/workflows/ActionTestWorkflow.yml
with:
TestType: Src-Default
Path: tests/srcTestRepo/src
Settings: SourceCode
23 changes: 23 additions & 0 deletions .github/workflows/Action-Test-Src-WithManifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Action-Test [Src-WithManifest]

run-name: "Action-Test [Src-WithManifest] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"

on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
ActionTest:
uses: ./.github/workflows/ActionTestWorkflow.yml
with:
TestType: Src-WithManifest
Path: tests/srcWithManifestTestRepo/src
Settings: SourceCode
24 changes: 24 additions & 0 deletions .github/workflows/Action-Test-outputs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Action-Test [outputs]

run-name: "Action-Test [outputs] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"

on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
ActionTest:
uses: ./.github/workflows/ActionTestWorkflow.yml
with:
TestType: outputs
Path: tests/outputTestRepo/outputs/modules/PSModuleTest
Settings: Module
SettingsFilePath:
32 changes: 0 additions & 32 deletions .github/workflows/Action-Test.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/ActionTestWorkflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
on:
workflow_call:
inputs:
TestType:
type: string
required: true
Path:
type: string
required: true
Settings:
type: string
required: false
SettingsFilePath:
type: string
required: false

permissions: {}

jobs:
ActionTest:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
name: Action-Test [outputs] - [${{ matrix.os }}]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Initialize environment
uses: PSModule/Initialize-PSModule@main

- name: Action-Test
uses: ./
id: action-test
with:
Path: ${{ inputs.Path }}
Settings: ${{ inputs.Settings }}
SettingsFilePath: ${{ inputs.SettingsFilePath }}

- name: Status
shell: pwsh
env:
PASSED: ${{ steps.action-test.outputs.passed }}
run: |
Write-Host "Passed: [$env:PASSED]"
if ($env:PASSED -ne 'true') {
exit 1
}
34 changes: 0 additions & 34 deletions .github/workflows/Auto-Configure.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/Auto-Document.yml

This file was deleted.

70 changes: 36 additions & 34 deletions .github/workflows/Auto-Release.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,36 @@
name: Auto-Release

run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"

on:
pull_request_target:
branches:
- main
types:
- closed
- opened
- reopened
- synchronize
- labeled

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write # Required to create releases
pull-requests: write # Required to create comments on the PRs

jobs:
Auto-Release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Auto-Release
uses: PSModule/Auto-Release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
name: Auto-Release

run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"

on:
pull_request_target:
branches:
- main
types:
- closed
- opened
- reopened
- synchronize
- labeled

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write

jobs:
Auto-Release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Auto-Release
uses: PSModule/Auto-Release@v1
env:
GITHUB_TOKEN: ${{ github.token }} # Used for GitHub CLI authentication
with:
IncrementalPrerelease: false
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License
Copyright (c) 2025 PSModule
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License

Copyright (c) 2025 PSModule

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading