Validate #65
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: Validate | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: "0 2 * * */2" | |
jobs: | |
build: | |
name: Ensure the code builds | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: bundle install | |
- run: pod repo update | |
- run: pod install | |
- run: | | |
set -o pipefail | |
xcodebuild -workspace ooniprobe.xcworkspace -scheme ooniprobe \ | |
-destination='name=Any iOS Device' -sdk iphoneos archive CODE_SIGNING_ALLOWED="NO" | xcpretty | |
test: | |
name: Run tests | |
needs: [ build ] | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: bundle install | |
- run: pod repo update | |
- run: pod install | |
- run: | | |
set -o pipefail | |
xcodebuild clean build test -workspace ooniprobe.xcworkspace -sdk iphonesimulator \ | |
-scheme ooniprobe -destination 'name=iPhone 14' | xcpretty |