docs: Add a test code for socket in bash #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: test macime & macimed | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Show Swift version | |
| run: swift --version | |
| - name: Build (release) | |
| run: swift build -c release | |
| - name: Run macime get (direct) | |
| run: | | |
| .build/release/macime get | |
| - name: Start/Stop macimed | |
| run: | | |
| export MACIME_PATH="$PWD/.build/release/macime" | |
| .build/release/macimed & | |
| echo $! > macimed.pid | |
| sleep 1 | |
| kill "$(cat macimed.pid)" || true | |