Skip to content

Testing build actions #1

Testing build actions

Testing build actions #1

Workflow file for this run

name: Test Build
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Run build script
run: |
.\build.ps1
if (Test-Modulemanifest -path "$Home\ModuleBuild\$moduleName\$moduleName.psd1") {
if (import-module "$Home\ModuleBuild\$moduleName") {
"Built module imported successfully!"
return $true;
} else {
Write-Error "Failed to import module!"
return $false;
}
} else {
Write-Error "Manifest threw error"
return $false;
}