Run mocked tests

This commit is contained in:
Peter Steinberger 2025-05-25 01:43:35 +02:00
parent d84b805894
commit 5c3958d305

View file

@ -7,7 +7,7 @@ on:
branches: [ main ]
jobs:
build:
test:
runs-on: macos-latest
strategy:
@ -29,7 +29,40 @@ jobs:
- name: Build TypeScript
run: npm run build
- name: Run tests
run: npm test
- name: Run linter
run: npm run lint --if-present
- name: Run tests with coverage
run: npm run test:coverage
env:
CI: true
CI: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: matrix.node-version == '20.x'
with:
file: ./coverage/lcov.info
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
build-swift:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Setup Swift
uses: swift-actions/setup-swift@v2
with:
swift-version: "6.0"
- name: Build Swift CLI
run: |
cd peekaboo-cli
swift build -c release
- name: Run Swift tests
run: |
cd peekaboo-cli
swift test