Skip to content

GitHub Action to test installation of Pulsar via chocolatey #12

GitHub Action to test installation of Pulsar via chocolatey

GitHub Action to test installation of Pulsar via chocolatey #12

Workflow file for this run

name: Chocolatey Test Installation
on: [ workflow_dispatch, pull_request]
jobs:
tests:
runs-on: windows-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
- name: Build Current Version
run: |
cd ./pulsar
choco pack
- name: Install Current Version
run: choco install pulsar --source .
- name: Put Pulsar On the PATH
run: |
"$env:LOCALAPPDATA\Programs\Pulsar\" >> $env:GITHUB_PATH
"$env:LOCALAPPDATA\Programs\Pulsar\resources\ppm\bin\" >> $env:GITHUB_PATH
- name: Ensure Installation was successful
run: pulsar --version | Write-Host >> $env:GITHUB_STEP_SUMMARY
shell: pwsh
- name: Can we set the Step Summary Successfully?
run: echo "$(pulsar --version | Write-Host)" >> $env:GITHUB_STEP_SUMMARY