potatoqualitee / psmodulecache

This action makes caching PowerShell modules from the PowerShell Gallery easy for Linux, Windows and macOS runners.
MIT License
31 stars 12 forks source link

Feature module dependencies #56

Closed LaurentDardenne closed 1 year ago

LaurentDardenne commented 1 year ago

Add support for the modules dependencies.

Refactoring and bug fixes around managing multiple repositories.

See the details : https://github.com/potatoqualitee/psmodulecache/issues/55

LaurentDardenne commented 1 year ago

For the 'test-Workflow', now the Pester action execute this :

  test-Workflow:
    runs-on: windows-latest
    steps:
      - name: Run Github action 'MatrixCacheDemo'
        shell: powershell
        run: |
          $global:iswindows = $true
          $OwnerAndRepository ='${{ github.repository }}'

          Write-Host "Execute the workflow 'MatrixCacheDemo'."
          gh workflow run 'MatrixCacheDemo' --repo $OwnerAndRepository

        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Rights may be missing in the context of this PR https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token

LaurentDardenne commented 1 year ago

For the Pester error under macOS, it seems to be internal to the runner: image

A second execution does not cause any errors in the tests.

See too https://github.com/potatoqualitee/psmodulecache/issues/51#issuecomment-1773743076