Skip to content

Commit

Permalink
Merge pull request #2 from mdowst/iso
Browse files Browse the repository at this point in the history
create actions
  • Loading branch information
mdowst committed Feb 7, 2024
2 parents ca5a8e7 + e1eb59e commit ea6c025
Show file tree
Hide file tree
Showing 61 changed files with 2,978 additions and 904 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/build.yml
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

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Publish/APIKey.json
Publish/PSDates/
Publish/PSDates/
Build/
27 changes: 0 additions & 27 deletions Public/ConvertFrom-WmiDateTime.ps1

This file was deleted.

Loading

0 comments on commit ea6c025

Please sign in to comment.