From 5f5bdb4c0a68cd908edcfc2e39db6f49b4d98bcc Mon Sep 17 00:00:00 2001 From: JJ Fullmer Date: Sat, 17 Aug 2024 20:56:09 -0600 Subject: [PATCH] Testing build actions --- .github/workflows/build-test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build-test.yml 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