Skip to content

Commit

Permalink
Testing build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
darksidemilk committed Aug 18, 2024
1 parent df4e50c commit 5f5bdb4
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 5f5bdb4

Please sign in to comment.