that test got all kinds of messed up #1171
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: Cross Platform Import | |
on: [push] | |
jobs: | |
build: | |
env: | |
SMODefaultModuleName: dbatools | |
name: Module imports on all platforms | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest, macOS-14] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install and cache PowerShell modules | |
uses: potatoqualitee/[email protected] | |
with: | |
modules-to-cache: dbatools.library:2024.4.12 | |
- name: Perform the import | |
shell: pwsh | |
run: | | |
Import-Module ./dbatools.psd1 -ErrorAction Stop | |
(Get-DbaManagementObject).LoadTemplate -ne $null |