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
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ jobs:
uses: actions/checkout@v5

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v3
uses: github/codeql-action/autobuild@v4

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
42 changes: 8 additions & 34 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ blocks:
- bundle install
- bundle exec fastlane build
- bundle exec fastlane test
- git clone https://github.com/appium/WebDriverAgent.git
- cd WebDriverAgent
- xcodebuild build-for-testing -project WebDriverAgent.xcodeproj -derivedDataPath /var/tmp/derived_data/WebDriverAgent -scheme WebDriverAgentRunner -destination "platform=iphonesimulator,OS=26.0,name=iPhone 17"
# - git clone https://github.com/appium/WebDriverAgent.git
# - cd WebDriverAgent
# - xcodebuild build-for-testing -project WebDriverAgent.xcodeproj -derivedDataPath /var/tmp/derived_data/WebDriverAgent -scheme WebDriverAgentRunner -destination "platform=iphonesimulator,OS=26.1,name=iPhone 17"
epilogue:
always:
commands:
- cd /var/tmp/derived_data/FlowCrypt/Build/Products/Debug-iphonesimulator && cache store FlowCrypt-$SEMAPHORE_GIT_SHA.app FlowCrypt.app
- cd /var/tmp/derived_data/WebDriverAgent/Build/Products/Debug-iphonesimulator && cache store WebDriverAgentRunner-Runner-$SEMAPHORE_GIT_SHA.app WebDriverAgentRunner-Runner.app
# - cd /var/tmp/derived_data/WebDriverAgent/Build/Products/Debug-iphonesimulator && cache store WebDriverAgentRunner-Runner-$SEMAPHORE_GIT_SHA.app WebDriverAgentRunner-Runner.app
- name: TypeScript tests
dependencies: []
run:
Expand Down Expand Up @@ -88,37 +88,11 @@ blocks:
- mv ~/appium-env ~/git/flowcrypt-ios/appium/.env
- cache restore appium-npm && cd ./appium && npm i && cd .. && cache store appium-npm appium/node_modules
- cd appium
- |
# Retry cache restore up to 3 times if it fails
for i in 1 2 3; do
echo "Attempt $i: Restoring cache..."
if cache restore FlowCrypt-$SEMAPHORE_GIT_SHA.app; then
echo "Cache restored successfully."
break
elif [ $i -lt 3 ]; then
echo "Cache restore failed. Retrying in 5 seconds..."
sleep 5
else
echo "Cache restore failed after 3 attempts. Proceeding without cache."
fi
done
- |
# Retry cache restore up to 3 times if it fails
for i in 1 2 3; do
echo "Attempt $i: Restoring cache..."
if cache restore WebDriverAgentRunner-Runner-$SEMAPHORE_GIT_SHA.app; then
echo "Cache restored successfully."
break
elif [ $i -lt 3 ]; then
echo "Cache restore failed. Retrying in 5 seconds..."
sleep 5
else
echo "Cache restore failed after 3 attempts. Proceeding without cache."
fi
done
- cache restore FlowCrypt-$SEMAPHORE_GIT_SHA.app
# - cache restore WebDriverAgentRunner-Runner-$SEMAPHORE_GIT_SHA.app
- open -Fn "$(xcode-select -p)/Applications/Simulator.app"
- xcrun simctl boot "iPhone 17"
- xcrun simctl install booted ./WebDriverAgentRunner-Runner.app
# - xcrun simctl install booted ./WebDriverAgentRunner-Runner.app
epilogue:
always:
commands:
Expand Down Expand Up @@ -146,4 +120,4 @@ after_pipeline:
jobs:
- name: Publish Results
commands:
- test-results gen-pipeline-report
- test-results gen-pipeline-report
Loading