Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
markmur committed Nov 26, 2024
1 parent 21e85dc commit dec9a3d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
cocoapods:
runs-on: macos-13
runs-on: macos-latest

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:

check-license-headers:
name: License Headers
runs-on: macos-13
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: ./Scripts/copy_license && git diff --name-only --exit-code

lint-podspec:
name: CocoaPods
runs-on: macos-13
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-samples.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run Sample App Tests
name: Build Sample Apps

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
runs-on: macos-13
runs-on: macos-latest

steps:
- name: Checkout Repository
Expand Down
18 changes: 14 additions & 4 deletions Scripts/test_samples
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,29 @@ set -eo pipefail
if [[ -n $CURRENT_SIMULATOR_UUID ]]; then
dest="id=$CURRENT_SIMULATOR_UUID"
else
dest="platform=iOS Simulator,name=iPhone 16"
dest="platform=iOS Simulator,name=iPhone 14"
fi

cd Samples/

EMPTY_ENTITLEMENTS="""
<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\"></plist>
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\">
<dict/>
</plist>
"""

build_app() {
touch "$1/Storefront.xcconfig"
echo $EMPTY_ENTITLEMENTS > "$1/$1/$1.entitlements"

# Create an empty entitlements file if it doesn't already exist
if [[ ! -f "$1/$1/$1.entitlements" ]]; then
echo $EMPTY_ENTITLEMENTS > "$1/$1/$1.entitlements"
else
echo "Entitlements file already exists for $1 project."
fi

xcodebuild clean build -scheme $1 -sdk iphonesimulator -destination "$dest" -skipPackagePluginValidation | xcpretty -c
}

Expand Down

0 comments on commit dec9a3d

Please sign in to comment.