forked from il-mix/pulsar-chocolatey
-
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (23 loc) · 833 Bytes
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
id: pulsar-version
run: |
$version = (pulsar --version | Out-String) -Split '\n' -Like 'Pulsar*' -Replace 'Pulsar' -Replace ':' -Replace '\s'
echo "Pulsar $version" >> $env:GITHUB_STEP_SUMMARY