test: Use XCTestExpectation for delay non blocking #14756
Workflow file for this run
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: CodeQL | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "40 4 * * 6" # Weekly scheduled run to catch issues regardless of changes | |
# Concurrency configuration: | |
# - We use workflow-specific concurrency groups to prevent multiple CodeQL security analysis runs, | |
# as these are comprehensive security scans that shouldn't run simultaneously. | |
# - For pull requests, we cancel in-progress runs when new commits are pushed since only the | |
# latest security analysis results matter for identifying potential vulnerabilities. | |
# - For main branch pushes and scheduled runs, we never cancel security analysis to ensure | |
# complete security validation and maintain our security baseline with weekly scheduled scans. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
jobs: | |
analyze: | |
name: Analyze (${{ matrix.language }}) | |
runs-on: macos-14 | |
strategy: | |
fail-fast: false | |
matrix: | |
language: ["cpp"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- run: | | |
set -o pipefail && NSUnbufferedIO=YES xcodebuild \ | |
-workspace Sentry.xcworkspace \ | |
-scheme Sentry \ | |
-configuration Release \ | |
-destination platform="iOS Simulator,OS=latest,name=iPhone 14 Pro" \ | |
build 2>&1 | | |
tee raw-analyze-output.log | | |
xcbeautify | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |