From f9c5604b3b43f16667af39cd3929272ea3e970a8 Mon Sep 17 00:00:00 2001 From: David Gardiner Date: Sat, 31 Dec 2022 11:52:12 +1030 Subject: [PATCH 1/2] Test cache with container --- .github/workflows/cache.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/cache.yml diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml new file mode 100644 index 0000000..7b279ca --- /dev/null +++ b/.github/workflows/cache.yml @@ -0,0 +1,20 @@ +name: Cache Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + publish: + runs-on: ubuntu-latest + container: mcr.microsoft.com/powershell:ubuntu-22.04 + steps: + + - uses: actions/checkout@v3 + + - name: PowerShell Module Cache + uses: potatoqualitee/psmodulecache@v5.2 + with: + modules-to-cache: Az.Network From 7418f75c340052e2b6beb605387eb69b9940e96a Mon Sep 17 00:00:00 2001 From: David Gardiner Date: Sat, 31 Dec 2022 12:17:02 +1030 Subject: [PATCH 2/2] dump env --- .github/workflows/cache.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 7b279ca..fe9d095 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -12,7 +12,9 @@ jobs: container: mcr.microsoft.com/powershell:ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - run: | + Get-ChildItem Env: | Sort-Object Name | Format-Table -Wrap -AutoSize + shell: pwsh - name: PowerShell Module Cache uses: potatoqualitee/psmodulecache@v5.2