Skip to content

Commit

Permalink
Fix Save-Module error
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Feb 7, 2024
1 parent 398367a commit 92f7a73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/ModuleBuildTestRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
name: Package Module
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Calculate ModuleVersion (GitVersion)
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
needs:
- Build_Stage_Package_Module
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Download Build Artifact
Expand All @@ -70,25 +70,6 @@ jobs:
path: ${{ env.buildFolderName }}/${{ env.testResultFolderName }}/
name: CodeCoverageWinPS51

# Test_Stage_Code_Coverage:
# name: Publish Code Coverage
# runs-on: ubuntu-latest
# needs:
# - Build_Stage_Package_Module
# - Test_Stage_test_windows_ps
# steps:
# - uses: actions/checkout@v2
# - name: Set Environment Variables
# run: |
# $repositoryOwner,$repositoryName = $env:BUILD_REPOSITORY_NAME -split '/'
# echo "##vso[task.setvariable variable=RepositoryOwner;isOutput=true]$repositoryOwner"
# echo "##vso[task.setvariable variable=RepositoryName;isOutput=true]$repositoryName"
# shell: pwsh
# - name: Download Pipeline Artifact
# uses: actions/download-artifact@v2
# - name: Download Test Artifact Windows (PS 5.1)
# uses: actions/download-artifact@v2

Deploy_Stage_Deploy_Module:
name: Deploy Module
runs-on: ubuntu-latest
Expand All @@ -97,7 +78,7 @@ jobs:
#- Test_Stage_Code_Coverage
if: (success() && ((github.ref == 'refs/heads/main') || startsWith(github.ref, 'refs/tags/')) && (contains(github.repository_owner, 'ykuijs')))
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@main
with:
fetch-depth: 0
- name: Download Build Artifact
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/Public/Add-ModulesToBlobStorage.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ Describe Add-ModulesToBlobStorage {
}
}

Import-Module -Name PowerShellGet

Mock -CommandName Save-Module -MockWith { }
}

Expand Down

0 comments on commit 92f7a73

Please sign in to comment.