Skip to content

Commit 8c1ea47

Browse files
Fixing Pester requirement (#1)
* Fixing Pester requirement * Bump Pester to 5.7.1 * feat: ✨ Update CI workflow and add Publish Module workflow * Refactored the CI workflow to trigger on `pull_request` and `workflow_dispatch`. * Removed the previous test job and replaced it with a reference to the `ModuleCI.yml`. * Introduced a new `PublishModule.yml` workflow for publishing the module on `push` to `main`.
1 parent 539cfab commit 8c1ea47

3 files changed

Lines changed: 19 additions & 15 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
name: CI
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
workflow_dispatch:
5+
permissions:
6+
checks: write
7+
pull-requests: write
38
jobs:
4-
test:
5-
name: Run Tests
6-
runs-on: ${{ matrix.os }}
7-
strategy:
8-
fail-fast: false
9-
matrix:
10-
os: [ubuntu-latest, windows-latest, macOS-latest]
11-
steps:
12-
- uses: actions/checkout@v1
13-
- name: Test
14-
shell: pwsh
15-
run: ./build.ps1 -Task Test -Bootstrap
16-
9+
ci:
10+
uses: PSInclusive/.github/.github/workflows/ModuleCI.yml@main
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Publish Module
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
jobs:
8+
build:
9+
uses: PSInclusive/.github/.github/workflows/PublishModule.yml@main
10+
secrets: inherit

requirements.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Target = 'CurrentUser'
77
}
88
'Pester' = @{
9-
Version = '5.4.0'
9+
Version = '5.7.1'
1010
Parameters = @{
1111
SkipPublisherCheck = $true
1212
}

0 commit comments

Comments
 (0)