Fix overwriting issue when downloading multiple updates for the same … #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS Import Test | |
on: [pull_request] | |
jobs: | |
build: | |
name: Module imports on macOS | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macOS-latest] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Perform the import | |
shell: pwsh | |
run: | | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
Install-Module PSFramework, kbupdate-library, PSSQLite | |
Import-Module ./kbupdate.psd1 -ErrorAction Stop | |
(Get-KbUpdate -Name KB2992080 -Source Web).Title | Should -Not -BeNull |