-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mdowst/iso
create actions
- Loading branch information
Showing
61 changed files
with
2,978 additions
and
904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: build module | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build-module: | ||
name: Run build and upload artifacts | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
fetch-depth: 0 | ||
|
||
- name: Install Modules | ||
shell: pwsh | ||
run: | | ||
Set-PSRepository PSGallery -InstallationPolicy Trusted | ||
Install-Module ModuleBuilder,PSScriptAnalyzer | ||
Install-Module Pester -MinimumVersion 5.5.0 | ||
- name: Run build | ||
shell: pwsh | ||
run: | | ||
$Version = git describe --tags --abbrev=0 | ||
Write-Host "Version : $Version" | ||
.\build.ps1 -Version $Version | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: my-build | ||
path: Build | ||
|
||
test-module: | ||
needs: build-module | ||
name: Test Module | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: my-build | ||
path: Build | ||
|
||
- name: Install Modules | ||
shell: pwsh | ||
run: | | ||
Set-PSRepository PSGallery -InstallationPolicy Trusted | ||
Install-Module Pester -MinimumVersion 5.5.0 | ||
- name: Test build | ||
shell: pwsh | ||
run: .\test-build.ps1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
Publish/APIKey.json | ||
Publish/PSDates/ | ||
Publish/PSDates/ | ||
Build/ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.