Skip to content

Commit 299c54b

Browse files
committed
(maint) Add module caching to GHA. Thank's Chrissy!
1 parent 708e1c0 commit 299c54b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
ChocoApiKey: ${{ secrets.ChocoApiKey }}
2020

2121
steps:
22+
- uses: AutoModality/action-clean@v1
2223
- uses: actions/checkout@v2
2324

2425
- name: GitVersion
@@ -28,6 +29,11 @@ jobs:
2829
- name: Install-RequiredModules
2930
uses: PoshCode/Actions/install-requiredmodules@v1
3031

32+
- name: Install and cache PowerShell modules
33+
uses: potatoqualitee/psmodulecache@v4
34+
with:
35+
modules-to-cache: PlatyPS:0.14.0
36+
3137
- name: Build Module
3238
run: .\build.ps1 -Build -SemVer "${{ steps.gitversion.outputs.LegacySemVerPadded }}"
3339
shell: pwsh

0 commit comments

Comments
 (0)