diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 72b56e6d..d1b19f63 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -34,6 +34,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive + persist-credentials: false - uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: '16.0-beta' @@ -42,7 +43,7 @@ jobs: ruby-version: 3.2 bundler-cache: true - name: Cache cocoapods - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cocoapods with: diff --git a/spec/integration_spec.rb b/spec/integration_spec.rb index 52806869..d662fdb6 100644 --- a/spec/integration_spec.rb +++ b/spec/integration_spec.rb @@ -146,6 +146,15 @@ def configure_cocoapods HTML + realm_jazzy_yaml= <<-YAML +build_tool_arguments: + - "-scheme" + - "RealmSwift" + - "SWIFT_VERSION=4.2" + - "-destination" + - "platform=OS X,arch=x86_64" + YAML + spec_subset = ENV.fetch('JAZZY_SPEC_SUBSET', nil) # rubocop:disable Style/MultilineIfModifier @@ -208,9 +217,15 @@ def configure_cocoapods describe 'Creates Realm Swift docs' do realm_version = '' - Dir.chdir(ROOT + 'spec/integration_specs/document_realm_swift/before') do + realm_path = ROOT + 'spec/integration_specs/document_realm_swift/before' + realm_jazzy_path = realm_path + '.jazzy.yaml' + + Dir.chdir(realm_path) do realm_version = `./build.sh get-version`.chomp end + # Xcode 16 workaround + File.write(realm_jazzy_path, realm_jazzy_yaml) + behaves_like cli_spec 'document_realm_swift', '--author Realm ' \ '--author_url "https://realm.io" ' \ @@ -222,10 +237,8 @@ def configure_cocoapods "--module-version #{realm_version} " \ '--root-url https://realm.io/docs/swift/' \ "#{realm_version}/api/ " \ - '--xcodebuild-arguments ' \ - '-scheme,RealmSwift,SWIFT_VERSION=4.2,' \ - "-destination,'platform=OS X' " \ "--head #{realm_head.shellescape}" + FileUtils.rm_rf realm_jazzy_path end describe 'Creates Siesta docs' do diff --git a/spec/integration_specs b/spec/integration_specs index 0da1a7fd..8f328af8 160000 --- a/spec/integration_specs +++ b/spec/integration_specs @@ -1 +1 @@ -Subproject commit 0da1a7fd3d5548f4a73740cec371f57f97f516b9 +Subproject commit 8f328af8e6f31bad7555e831644c6994dc4d600d