Skip to content

Commit

Permalink
chore: update ci workflow (#559)
Browse files Browse the repository at this point in the history
## Proposed Changes

- Update ci workflow to remove `DEVELOPER_DIR` and consolidate in single
file.
  • Loading branch information
aanorbel authored May 30, 2024
1 parent c02262a commit 3f7d5e0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 40 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/archive.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/tests.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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

0 comments on commit 3f7d5e0

Please sign in to comment.