Compare commits
4 Commits
main
...
test-ci-an
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b6f66c25f9 | ||
|
|
cc2e929275 | ||
|
|
04b832dbf8 | ||
|
|
017f4649de |
56
.github/workflows/ci.yml
vendored
56
.github/workflows/ci.yml
vendored
@ -8,33 +8,30 @@ on:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: macos-15
|
||||
runs-on: macos-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x, 22.x]
|
||||
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Xcode
|
||||
run: |
|
||||
sudo xcode-select -s $DEVELOPER_DIR
|
||||
# List available Xcode versions
|
||||
ls -la /Applications | grep Xcode || true
|
||||
# Use the latest available Xcode
|
||||
LATEST_XCODE=$(ls /Applications | grep Xcode | sort -V | tail -1)
|
||||
echo "Found Xcode: $LATEST_XCODE"
|
||||
sudo xcode-select -s /Applications/$LATEST_XCODE/Contents/Developer
|
||||
xcodebuild -version
|
||||
swift --version
|
||||
|
||||
- name: Build Swift CLI for tests
|
||||
run: |
|
||||
cd Apps/CLI
|
||||
swift build -c release
|
||||
# Copy the binary to the expected location
|
||||
cp .build/release/peekaboo ../../peekaboo
|
||||
cd ../..
|
||||
# Make it executable
|
||||
chmod +x peekaboo
|
||||
# Use the build script that injects version
|
||||
./scripts/build-swift-universal.sh
|
||||
# Verify it exists
|
||||
ls -la peekaboo
|
||||
|
||||
@ -43,18 +40,27 @@ jobs:
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'npm'
|
||||
cache-dependency-path: Server/package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: |
|
||||
cd Server
|
||||
npm ci
|
||||
|
||||
- name: Build TypeScript
|
||||
run: npm run build
|
||||
run: |
|
||||
cd Server
|
||||
npm run build
|
||||
|
||||
- name: Run linter
|
||||
run: npm run lint --if-present
|
||||
run: |
|
||||
cd Server
|
||||
npm run lint --if-present
|
||||
|
||||
- name: Run tests with coverage
|
||||
run: npm run test:coverage
|
||||
run: |
|
||||
cd Server
|
||||
npm run test:coverage
|
||||
env:
|
||||
CI: true
|
||||
|
||||
@ -62,31 +68,33 @@ jobs:
|
||||
uses: codecov/codecov-action@v4
|
||||
if: matrix.node-version == '20.x'
|
||||
with:
|
||||
file: ./coverage/lcov.info
|
||||
file: ./Server/coverage/lcov.info
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
||||
fail_ci_if_error: false
|
||||
|
||||
build-swift:
|
||||
runs-on: macos-15
|
||||
runs-on: macos-latest
|
||||
timeout-minutes: 30
|
||||
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_16.4.app/Contents/Developer
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Xcode
|
||||
run: |
|
||||
sudo xcode-select -s $DEVELOPER_DIR
|
||||
# List available Xcode versions
|
||||
ls -la /Applications | grep Xcode || true
|
||||
# Use the latest available Xcode
|
||||
LATEST_XCODE=$(ls /Applications | grep Xcode | sort -V | tail -1)
|
||||
echo "Found Xcode: $LATEST_XCODE"
|
||||
sudo xcode-select -s /Applications/$LATEST_XCODE/Contents/Developer
|
||||
xcodebuild -version
|
||||
swift --version
|
||||
|
||||
- name: Build Swift CLI
|
||||
run: |
|
||||
cd Apps/CLI
|
||||
swift build -c release
|
||||
# Use the build script that injects version
|
||||
./scripts/build-swift-universal.sh
|
||||
|
||||
- name: Run Swift tests
|
||||
timeout-minutes: 15
|
||||
|
||||
@ -3,6 +3,7 @@
|
||||

|
||||
|
||||
[](https://www.npmjs.com/package/@steipete/peekaboo-mcp)
|
||||
[](https://github.com/steipete/Peekaboo/actions/workflows/ci.yml)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://www.apple.com/macos/)
|
||||
[](https://swift.org/)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user