test event #13
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
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 |