Skip to content

test event

test event #13

name: PowerShell Module CI
on:
push:
paths:
# JumpCloud Module
- 'PowerShell/JumpCloud Module/**'
# Pull Request
pull_request:
paths:
# JumpCloud Module
- 'PowerShell/JumpCloud Module/**'
types: [opened, edited]
jobs:
Test-Diff-Master-Branch:
runs-on: ubuntu-latest
steps:
- name : testPR
uses: actions/checkout@v4
- name: Get diff if pull request
run: |
#Echo the current event
echo "Current event: $GITHUB_EVENT_NAME"
clone:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
Publish-PowerShell-Artifact:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
Source: "CodeArtifact"
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
PowerShell
- shell: pwsh
run: |
. "./PowerShell/Deploy/BuildNuspecFromPsd1.ps1" -RequiredModulesRepo PSGallery