Skip to content

Commit 1b9fecd

Browse files
committed
chore: improve github workflows
* Remove --verbose from brew install calls * Use warning in puppet/bolt apply * Add bolt --version output * Check with pkgutil if cask is really uninstalled
1 parent baf03cd commit 1b9fecd

File tree

2 files changed

+29
-10
lines changed

2 files changed

+29
-10
lines changed

.github/workflows/check.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ jobs:
1919
with:
2020
ruby-version: '3.3'
2121
bundler-cache: true
22-
- name: Update openvox-agent-8 cask
23-
run: bundle exec rake 'brew:cask[openvox-agent,8]'
24-
- name: Check if openvox-agent-8 is up-to-date
22+
23+
- name: Update openvox8-agent cask
24+
run: bundle exec rake 'brew:cask[agent,8]'
25+
- name: Check if openvox8-agent is up-to-date
26+
run: git diff --exit-code
27+
28+
- name: Update openvox8-openbolt cask
29+
run: bundle exec rake 'brew:cask[openbolt,8]'
30+
- name: Check if openvox8-openbolt is up-to-date
2531
run: git diff --exit-code

.github/workflows/install.yaml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
strategy:
1717
matrix:
1818
macos:
19-
- macos-13
2019
- macos-14
2120
- macos-15
2221
- macos-15-intel
@@ -32,9 +31,23 @@ jobs:
3231
fetch-depth: 0
3332
- name: Create a temporary tap
3433
run: brew tap local/test .
35-
- name: Install openvox-agent-8 cask
36-
run: brew install --display-times --verbose --cask openvox-agent-8
37-
- name: Check openvox-agent-8
38-
run: /opt/puppetlabs/bin/puppet apply -e 'notice $facts["implementation"], $facts["clientversion"]'
39-
- name: Uninstall openvox-agent-8 cask
40-
run: brew uninstall --verbose --cask openvox-agent-8
34+
35+
- name: Install openvox8-agent cask
36+
run: brew install --display-times --cask openvox8-agent
37+
- name: Check openvox8-agent
38+
run: /opt/puppetlabs/bin/puppet apply -e 'warning $facts["implementation"], $facts["clientversion"]'
39+
- name: Uninstall openvox8-agent cask
40+
run: brew uninstall --cask openvox8-agent
41+
- name: Check openvox8-agent uninstalled cleanly
42+
run: '! pkgutil --pkgs=^org\.voxpupuli\.openvox-agent$'
43+
44+
- name: Install openvox8-openbolt cask
45+
run: brew install --display-times --cask openvox8-openbolt
46+
- name: Check openvox8-openbolt
47+
run: >-
48+
/opt/puppetlabs/bin/bolt --version
49+
&& /opt/puppetlabs/bin/bolt apply -e 'warning $facts["implementation"], $facts["clientversion"]' -t localhost --verbose
50+
- name: Uninstall openvox8-openbolt cask
51+
run: brew uninstall --cask openvox8-openbolt
52+
- name: Check openvox8-openbolt uninstalled cleanly
53+
run: '! pkgutil --pkgs=^org\.voxpupuli\.openbolt$'

0 commit comments

Comments
 (0)