Skip to content

Workflow file for this run

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, arm64]
steps:
- uses: actions/checkout@v3
- name: Install and cache PowerShell modules
uses: potatoqualitee/[email protected]
with:
modules-to-cache: dbatools.library:2023.9.21
- name: Perform the import
shell: pwsh
run: |
Import-Module ./dbatools.psd1 -ErrorAction Stop
(Get-DbaManagementObject).LoadTemplate -ne $null