Skip to content

Commit ea03594

Browse files
🩹 [Patch]: Add nightly run for tests (#2)
## Description - Add nightly run for tests ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas
1 parent 7b943d3 commit ea03594

11 files changed

Lines changed: 28 additions & 9 deletions

.github/workflows/Nightly-Run.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Nightly run
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * *'
7+
8+
permissions:
9+
contents: read
10+
issues: write
11+
12+
jobs:
13+
Process-PSModule:
14+
uses: PSModule/Process-PSModule/.github/workflows/workflow.yml@v1
15+
secrets: inherit

.github/workflows/Process-PSModule.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches:
88
- main
9+
paths:
10+
- .github/workflows/Process-PSModule.yml
11+
- src/**
12+
- tests/**
913
types:
1014
- closed
1115
- opened

src/classes/Function.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Class Function {
1+
class Function {
22
$Name
33
$Version
44

src/classes/PSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Class PSModule {
1+
class PSModule {
22
$Name
33
$Version
44
$Functions

src/modules/OtherPSModule.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Function Get-OtherPSModule {
1+
function Get-OtherPSModule {
22
<#
33
.SYNOPSIS
44
A brief description of the function

src/private/Get-InternalPSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Function Get-InternalPSModule {
1+
function Get-InternalPSModule {
22
<#
33
.SYNOPSIS
44
Performs tests on a module.

src/private/Set-InternalPSModule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Function Set-InternalPSModule {
1+
function Set-InternalPSModule {
22
<#
33
.SYNOPSIS
44
Performs tests on a module.

src/public/Get-PSModuleTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Function Get-PSModuleTemplate {
1+
function Get-PSModuleTemplate {
22
<#
33
.SYNOPSIS
44
Performs tests on a module.

src/public/New-PSModuleTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Function New-PSModuleTemplate {
1+
function New-PSModuleTemplate {
22
<#
33
.SYNOPSIS
44
Performs tests on a module.

src/public/Set-PSModuleTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Function Set-PSModuleTemplate {
1+
function Set-PSModuleTemplate {
22
<#
33
.SYNOPSIS
44
Performs tests on a module.

0 commit comments

Comments
 (0)