Skip to content

Commit 8e1957c

Browse files
committed
Add CI, build plugin and run unit tests
1 parent 2ebfcfa commit 8e1957c

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: build
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build-qs:
9+
runs-on: macos-latest
10+
steps:
11+
with:
12+
QS_SOURCE_ROOT: /tmp/git/quicksilver
13+
QS_DONT_TEST: 1
14+
CONFIGURATION: Debug
15+
run: |
16+
latest_tag=$(
17+
git ls-remote --tags --refs --sort="-v:refname" https://github.com/quicksilver/quicksilver |
18+
awk -F/ '{ print $NF; exit }'
19+
)
20+
mkdir -p "${QS_SOURCE_ROOT}"
21+
git clone --recurse-submodules --branch="${latest_tag}" --depth=1 https://github.com/quicksilver/Quicksilver.git "${QS_SOURCE_ROOT}"
22+
23+
pushd "${QS_SOURCE_ROOT}"
24+
./Tools/qsrelease
25+
popd
26+
27+
template-plugin:
28+
steps:
29+
- uses: actions/checkout@v4
30+
- run: |
31+
set -x
32+
python -m pip install --user cookiecutter
33+
34+
pushd "$(mktemp -d)"
35+
cookiecutter \
36+
--no-input \
37+
"${OLDPWD}" \
38+
plugin_name=MyPlugin \
39+
author="Nathan Henrie" \
40+
description="test plugin for CI"
41+
42+
pushd QSMyNewPlugin
43+
44+
xcodebuild -scheme QSMyPlugin build
45+
xcodebuild -scheme QSMyPlugin test

0 commit comments

Comments
 (0)