Skip to content
Merged
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
10 changes: 9 additions & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v1
- name: Install and cache PowerShell modules
id: psmodulecache
uses: potatoqualitee/psmodulecache@v6.2.1
with:
modules-to-cache: BuildHelpers, Pester, psake, PowerShellBuild, PSScriptAnalyzer, powershell-yaml
- name: Build
shell: pwsh
run: ./build.ps1 -Task Build
- name: Test
shell: pwsh
run: ./build.ps1 -Task Test -Bootstrap
run: ./build.ps1 -Task Test

34 changes: 34 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Module
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
# Get the current version
- uses: actions/checkout@v3
- name: Install and cache PowerShell modules
id: psmodulecache
uses: potatoqualitee/psmodulecache@v6.2.1
with:
modules-to-cache: BuildHelpers, Pester, psake, PowerShellBuild, PSScriptAnalyzer, powershell-yaml
- shell: pwsh
# Give an id to the step, so we can reference it later
id: check_if_versions_bumped
run: |
[version]$GalleryVersion = Get-NextNugetPackageVersion -Name PSTestableData -ErrorAction Stop
[version]$GithubVersion = Get-MetaData -Path ./PSTestableData/PSTestableData.psd1 -PropertyName ModuleVersion -ErrorAction Stop
$bumped = $GithubVersion -ge $GalleryVersion

# Set the output named "version_bumped"
Write-Host "::set-output name=version_bumped::$bumped"

- name: Publish to PSGallery
shell: pwsh
if: steps.check_if_versions_bumped.outputs.version_bumped == 'True'
env:
PSGALLERY_API_KEY: ${{ secrets.PS_GALLERY_KEY }}
run: ./build.ps1 -Task Publish
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0] Unreleased
## [1.0.0] 2025-10-08

### Added

- Initial release
Loading