This repository was archived by the owner on Oct 1, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (32 loc) · 1.32 KB
/
command_test.yml
File metadata and controls
37 lines (32 loc) · 1.32 KB
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
31
32
33
34
35
36
37
name: CutBox cli run testing
on:
push:
branches: [ "master" ]
jobs:
test:
strategy:
matrix:
macos_version:
- macos-12
- macos-13
fail-fast: false
runs-on: ${{ matrix.macos_version }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
ref: master
- name: Test cubox_command
run: |
defaults write info.ocodo.cutbox historyStore -array-add "<dict><key>string</key><string>Test Passed?</string><key>favorite</key><string>favorite</string></dict>"
defaults write info.ocodo.cutbox historyStore -array-add "<dict><key>string</key><string>Copied Text</string><key>timestamp</key><string>${date_hour_ago}</string></dict>"
defaults write info.ocodo.cutbox historyStore -array-add "<dict><key>string</key><string>Copied text</string><key>timestamp</key><string>${date_day_ago}</string></dict>"
if test_bin/cutbox -h; then
echo "# CutBox precompiled CLI success on ${{ matrix.macos_version }} [✓]" >> "$GITHUB_STEP_SUMMARY"
test_bin/cutbox -h >> "$GITHUB_STEP_SUMMARY"
else
echo "# CutBox precompiled CLI failed on ${{ matrix.macos_version }} [☠]" >> "$GITHUB_STEP_SUMMARY"
exit 1
fi