Add Github workflow to run tests #13
Workflow file for this run
This file contains 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: Run automated tests | |
on: | |
pull_request: | |
branches: | |
- develop | |
- beta | |
- stable | |
push: | |
branches: | |
- develop | |
permissions: {} | |
jobs: | |
run_tests: | |
runs-on: macos-latest | |
name: Run automated tests | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build rust | |
run: ./rust/build-rust.sh | |
- name: Install pods | |
working-directory: Monal | |
run: pod install --repo-update | |
- name: Run tests | |
working-directory: Monal | |
run: | | |
set -o pipefail && \ | |
NSUnbufferedIO=YES xcodebuild \ | |
-workspace Monal.xcworkspace \ | |
-scheme Monal \ | |
-destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' \ | |
test \ | |
2>&1 | \ | |
xcbeautify --renderer github-actions |