Skip to content

Commit

Permalink
chore: update ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aanorbel committed May 16, 2024
1 parent c02262a commit 1e216c8
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
unit-test:
name: Run unit 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 1e216c8

Please sign in to comment.