Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Description
<!-- Provide a brief description of the changes in this PR -->

## Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation update
- [ ] Test improvement

## Testing
- [ ] Unit tests pass locally
- [ ] New tests have been added for new functionality
- [ ] Existing tests have been updated if needed

## Checklist
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code where necessary (following the no-comments rule)
- [ ] My changes generate no new warnings
- [ ] Any dependent changes have been merged and published

## Screenshots (if applicable)
<!-- Add screenshots to help explain your changes -->

## Additional Notes
<!-- Add any additional notes or context about the PR here -->
131 changes: 131 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
name: CI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
lint:
name: SwiftLint
runs-on: macos-15

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install SwiftLint
run: brew install swiftlint

- name: Run SwiftLint
run: |
cd Recap
swiftlint --strict --reporter github-actions-logging

build:
name: Build
runs-on: macos-15

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Cache DerivedData
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-deriveddata-${{ hashFiles('Recap.xcodeproj/project.pbxproj') }}
restore-keys: |
${{ runner.os }}-deriveddata-

- name: Resolve Package Dependencies
run: |
xcodebuild -resolvePackageDependencies \
-project Recap.xcodeproj \
-scheme Recap

- name: Build Debug
run: |
xcodebuild build \
-project Recap.xcodeproj \
-scheme Recap \
-configuration Debug \
-destination 'platform=macOS' \
-skipMacroValidation \
CODE_SIGNING_ALLOWED=NO

- name: Build Release
run: |
xcodebuild build \
-project Recap.xcodeproj \
-scheme Recap \
-configuration Release \
-destination 'platform=macOS' \
-skipMacroValidation \
CODE_SIGNING_ALLOWED=NO

test:
name: Test
runs-on: macos-15
needs: build

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Cache DerivedData
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-deriveddata-${{ hashFiles('Recap.xcodeproj/project.pbxproj') }}
restore-keys: |
${{ runner.os }}-deriveddata-

- name: Resolve Package Dependencies
run: |
xcodebuild -resolvePackageDependencies \
-project Recap.xcodeproj \
-scheme Recap

- name: Run Tests with Coverage
run: |
xcodebuild test \
-project Recap.xcodeproj \
-scheme Recap \
-destination 'platform=macOS' \
-resultBundlePath TestResults.xcresult \
-enableCodeCoverage YES \
-only-testing:RecapTests \
-skipMacroValidation \
CODE_SIGNING_ALLOWED=NO

- name: Generate Coverage Report
run: |
xcrun xccov view --report --json TestResults.xcresult > coverage.json

- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: TestResults.xcresult

- name: Upload Coverage Reports
uses: codecov/codecov-action@v5
with:
file: coverage.json
flags: unittests
name: recap-coverage
fail_ci_if_error: false
74 changes: 74 additions & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: PR Tests

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
pull-requests: write

jobs:
test:
name: Test PR
runs-on: macos-15

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Cache DerivedData
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-deriveddata-${{ hashFiles('Recap.xcodeproj/project.pbxproj') }}
restore-keys: |
${{ runner.os }}-deriveddata-

- name: Resolve Package Dependencies
run: |
xcodebuild -resolvePackageDependencies \
-project Recap.xcodeproj \
-scheme Recap

- name: Build and Test
run: |
xcodebuild test \
-project Recap.xcodeproj \
-scheme Recap \
-destination 'platform=macOS' \
-resultBundlePath TestResults.xcresult \
-only-testing:RecapTests \
-skipMacroValidation \
CODE_SIGNING_ALLOWED=NO

- name: Comment PR on Failure
if: failure() && github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '❌ Tests failed. Please check the [workflow logs](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).'
})

- name: Comment PR on Success
if: success() && github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✅ All tests passed!'
})
67 changes: 67 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Test Suite

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
test:
name: Run Tests
runs-on: macos-15

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Cache DerivedData
uses: actions/cache@v4
with:
path: ~/Library/Developer/Xcode/DerivedData
key: ${{ runner.os }}-deriveddata-${{ hashFiles('Recap.xcodeproj/project.pbxproj') }}
restore-keys: |
${{ runner.os }}-deriveddata-

- name: Resolve Package Dependencies
run: |
xcodebuild -resolvePackageDependencies \
-project Recap.xcodeproj \
-scheme Recap

- name: Build and Test
run: |
xcodebuild test \
-project Recap.xcodeproj \
-scheme Recap \
-destination 'platform=macOS' \
-resultBundlePath TestResults.xcresult \
-enableCodeCoverage YES \
-only-testing:RecapTests \
-skipMacroValidation \
CODE_SIGNING_ALLOWED=NO

- name: Upload Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: TestResults.xcresult

- name: Generate Coverage Report
run: |
xcrun xccov view --report --json TestResults.xcresult > coverage.json

- name: Upload Coverage
uses: codecov/codecov-action@v5
with:
file: coverage.json
flags: unittests
name: recap-coverage
fail_ci_if_error: false
35 changes: 28 additions & 7 deletions Recap.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,16 @@
A7C35B1B2E3DFE1D00F9261F /* Exceptions for "Recap" folder in "RecapTests" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Audio/Models/AudioProcess.swift,
Audio/Models/AudioProcessGroup.swift,
Audio/Processing/Detection/AudioProcessControllerType.swift,
Components/Buttons/PillButton.swift,
Components/Cards/ActionableWarningCard.swift,
DataModels/RecapDataModel.xcdatamodeld,
"Helpers/Colors/Color+Extension.swift",
Helpers/UIConstants.swift,
Helpers/Constants/AppConstants.swift,
Helpers/Constants/UIConstants.swift,
Helpers/MeetingDetection/MeetingPatternMatcher.swift,
Repositories/Models/LLMProvider.swift,
Repositories/Models/RecordingInfo.swift,
Repositories/Models/UserPreferencesInfo.swift,
Expand All @@ -54,6 +61,12 @@
Repositories/UserPreferences/UserPreferencesRepositoryType.swift,
Services/CoreData/CoreDataManagerType.swift,
Services/LLM/Core/LLMError.swift,
Services/MeetingDetection/Core/MeetingDetectionService.swift,
Services/MeetingDetection/Core/MeetingDetectionServiceType.swift,
Services/MeetingDetection/Detectors/GoogleMeetDetector.swift,
Services/MeetingDetection/Detectors/MeetingDetectorType.swift,
Services/MeetingDetection/Detectors/TeamsMeetingDetector.swift,
Services/MeetingDetection/Detectors/ZoomMeetingDetector.swift,
Services/Processing/Models/ProcessingError.swift,
Services/Processing/Models/ProcessingResult.swift,
Services/Processing/Models/ProcessingState.swift,
Expand All @@ -65,10 +78,16 @@
Services/Summarization/Models/SummarizationResult.swift,
Services/Summarization/SummarizationServiceType.swift,
Services/Transcription/TranscriptionServiceType.swift,
Views/Summary/Components/ProcessingProgressBar.swift,
Views/Summary/Components/ProcessingStatesCard.swift,
Views/Summary/ViewModel/SummaryViewModel.swift,
Views/Summary/ViewModel/SummaryViewModelType.swift,
Services/Warnings/WarningManagerType.swift,
UseCases/Settings/Components/MeetingDetection/MeetingDetectionView.swift,
UseCases/Settings/Components/Reusable/CustomToggle.swift,
UseCases/Settings/Components/SettingsCard.swift,
UseCases/Settings/ViewModels/MeetingDetection/MeetingDetectionSettingsViewModel.swift,
UseCases/Settings/ViewModels/MeetingDetection/MeetingDetectionSettingsViewModelType.swift,
UseCases/Summary/Components/ProcessingProgressBar.swift,
UseCases/Summary/Components/ProcessingStatesCard.swift,
UseCases/Summary/ViewModel/SummaryViewModel.swift,
UseCases/Summary/ViewModel/SummaryViewModelType.swift,
);
target = A721065F2E30165B0073C515 /* RecapTests */;
};
Expand Down Expand Up @@ -515,7 +534,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = EY7EQX6JC5;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 15.5;
MACOSX_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = dev.rawa.RecapTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -534,7 +553,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = EY7EQX6JC5;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 15.5;
MACOSX_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = dev.rawa.RecapTests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -551,6 +570,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = EY7EQX6JC5;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = dev.rawa.RecapUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -567,6 +587,7 @@
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = EY7EQX6JC5;
GENERATE_INFOPLIST_FILE = YES;
MACOSX_DEPLOYMENT_TARGET = 15.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = dev.rawa.RecapUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Binary file removed Recap/Assets.xcassets/AppIcon.appiconset/1024.png
Binary file not shown.
Binary file removed Recap/Assets.xcassets/AppIcon.appiconset/128.png
Binary file not shown.
Binary file removed Recap/Assets.xcassets/AppIcon.appiconset/16.png
Binary file not shown.
Binary file removed Recap/Assets.xcassets/AppIcon.appiconset/256.png
Binary file not shown.
Binary file removed Recap/Assets.xcassets/AppIcon.appiconset/32.png
Binary file not shown.
Binary file removed Recap/Assets.xcassets/AppIcon.appiconset/512.png
Binary file not shown.
Binary file removed Recap/Assets.xcassets/AppIcon.appiconset/64.png
Binary file not shown.
Loading
Loading