feat(daemon): add optional Sentry reporting #34
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" | |
| jobs: | |
| build-and-test: | |
| name: Build & Test (macOS) | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Swift version | |
| run: swift --version | |
| - name: Cache SwiftPM | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| .build | |
| ~/Library/Caches/org.swift.swiftpm | |
| key: spm-${{ runner.os }}-${{ hashFiles('Package.resolved') }} | |
| restore-keys: spm-${{ runner.os }}- | |
| - name: Build | |
| run: swift build | |
| - name: Test | |
| # Unit tests are mock-based by design — CI VMs have no AppleSMC service, | |
| # so anything touching real hardware must stay out of the test target. | |
| run: swift test | |
| - name: Release build | |
| run: swift build -c release |