fix: multi-turn conversation context loss and thinking indicator anim… #23
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: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test-macos: | |
| name: Test (macOS) | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Swift build | |
| uses: actions/cache@v4 | |
| with: | |
| path: .build | |
| key: swift-${{ runner.os }}-${{ hashFiles('Package.resolved') }} | |
| restore-keys: swift-${{ runner.os }}- | |
| - name: Run tests with coverage | |
| run: swift test --enable-code-coverage | |
| - name: Extract coverage percentage | |
| run: | | |
| XCTEST_PATH="$(find .build -name '*.xctest' -type d | head -1)" | |
| BINARY="${XCTEST_PATH}/Contents/MacOS/$(basename "$XCTEST_PATH" .xctest)" | |
| PROF_DATA=".build/debug/codecov/default.profdata" | |
| set -- $(xcrun llvm-cov report "$BINARY" \ | |
| -instr-profile="$PROF_DATA" \ | |
| -ignore-filename-regex='.build/|Tests/|Views/|ContentView|SwiftWorkApp' \ | |
| | tail -1) | |
| COVERAGE=$(printf "%.1f" $(echo "$4" | sed 's/%//')) | |
| echo "COVERAGE=$COVERAGE" >> $GITHUB_ENV | |
| echo "Coverage (non-View): ${COVERAGE}%" | |
| - name: Update coverage badge | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
| uses: Schneegans/dynamic-badges-action@v1.8.0 | |
| continue-on-error: true | |
| with: | |
| auth: ${{ secrets.GIST_TOKEN }} | |
| gistID: ${{ secrets.GIST_ID }} | |
| filename: coverage.json | |
| label: coverage | |
| message: ${{ env.COVERAGE }}% | |
| valColorRange: ${{ env.COVERAGE }} | |
| maxColorRange: 100 | |
| minColorRange: 0 |