diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..33ffae7 --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,32 @@ +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; + } \ No newline at end of file