docs: wire redesign-mockup screenshots into README #26
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: Test SecVF | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| env: | |
| SCHEME: SecVF | |
| DESTINATION: 'platform=macOS,arch=arm64' | |
| jobs: | |
| test: | |
| name: Build + Run Unit Tests | |
| runs-on: macos-15 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode version | |
| run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer | |
| - name: Show Xcode + Swift version | |
| run: | | |
| xcodebuild -version | |
| swift --version | |
| - name: Build for testing | |
| run: | | |
| xcodebuild \ | |
| -scheme "$SCHEME" \ | |
| -destination "$DESTINATION" \ | |
| -derivedDataPath build \ | |
| -configuration Debug \ | |
| CODE_SIGN_IDENTITY="-" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| build-for-testing | |
| - name: Run unit tests | |
| run: | | |
| # Skip the one network-dependent test that pulls a real Kali | |
| # ISO and consistently exceeds the test's own timeout in CI. | |
| # Tracked separately from the redesign — this skip keeps the | |
| # CI gate informative for everything else without flapping. | |
| xcodebuild \ | |
| -scheme "$SCHEME" \ | |
| -destination "$DESTINATION" \ | |
| -derivedDataPath build \ | |
| -configuration Debug \ | |
| -skip-testing:SecVFTests/ISOCacheManagerTests/testSecurityRouterAllowsKali \ | |
| CODE_SIGN_IDENTITY="-" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| test-without-building \ | |
| | tee xcodebuild-test.log \ | |
| | xcpretty --color || (cat xcodebuild-test.log && exit 1) | |
| - name: Upload xcresult bundle on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: xcresult | |
| path: build/Logs/Test/*.xcresult | |
| retention-days: 14 | |
| - name: Upload test log | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-log | |
| path: xcodebuild-test.log | |
| retention-days: 14 |