From 97187479ce8aa59ce73cce076c9fc1dd8a101470 Mon Sep 17 00:00:00 2001 From: Amp Date: Sat, 24 Oct 2026 02:48:24 +0000 Subject: [PATCH 1/4] Add GitHub Actions CI (literal CircleCI translation) Amp-Thread-ID: https://ampcode.com/threads/T-01a16bca-1655-7353-954d-3df32a86d78d Co-authored-by: Kamal Mahyuddin --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..6dc589e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +jobs: + test: + runs-on: macos-26 + steps: + - uses: actions/checkout@v5 + - name: Carthage bootstrap + run: carthage bootstrap --platform iOS --use-xcframeworks + - name: Build and run tests + run: > + set -o pipefail && + xcodebuild -workspace JSONAPIModel.xcworkspace -scheme JSONAPIModel-iOS + -destination 'platform=iOS Simulator,name=iPhone 17,OS=latest' + -configuration Debug test | xcbeautify From 60756a7439c9da48e840ca934be162b455ab8317 Mon Sep 17 00:00:00 2001 From: Amp Date: Sat, 24 Oct 2026 02:49:56 +0000 Subject: [PATCH 2/4] Try checkout-only Carthage bootstrap Amp-Thread-ID: https://ampcode.com/threads/T-01a16bca-1655-7353-954d-3df32a86d78d Co-authored-by: Kamal Mahyuddin --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6dc589e..28a53a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v5 - name: Carthage bootstrap - run: carthage bootstrap --platform iOS --use-xcframeworks + run: carthage bootstrap --no-build - name: Build and run tests run: > set -o pipefail && From 3b021ef251b67a0face72e2f08dbd2c5952cf710 Mon Sep 17 00:00:00 2001 From: Amp Date: Sat, 24 Oct 2026 02:51:50 +0000 Subject: [PATCH 3/4] Test the Swift package on the iOS simulator Co-authored-by: Kamal Mahyuddin --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28a53a3..485bf64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,11 +10,12 @@ jobs: runs-on: macos-26 steps: - uses: actions/checkout@v5 - - name: Carthage bootstrap - run: carthage bootstrap --no-build - - name: Build and run tests + # Test the Swift package (Package.swift). The legacy Carthage/xcworkspace + # setup no longer builds: the Xcode project is missing sources and the + # tests rely on SwiftPM's Bundle.module. + - name: Build and run tests (iOS Simulator) run: > set -o pipefail && - xcodebuild -workspace JSONAPIModel.xcworkspace -scheme JSONAPIModel-iOS + xcodebuild -workspace .swiftpm/xcode/package.xcworkspace -scheme JSONAPIModel -destination 'platform=iOS Simulator,name=iPhone 17,OS=latest' -configuration Debug test | xcbeautify From e2f9f2edfea3c3a4b3f607181aa116db4b1e216e Mon Sep 17 00:00:00 2001 From: Amp Date: Sat, 24 Oct 2026 02:54:56 +0000 Subject: [PATCH 4/4] Remove CircleCI config and badge Co-authored-by: Kamal Mahyuddin --- .circleci/config.yml | 34 ---------------------------------- README.md | 2 +- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 5cb6e29..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,34 +0,0 @@ -# iOS CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/ios-migrating-from-1-2/ for more details -# -version: 2 -jobs: - build: - - # Specify the Xcode version to use - macos: - xcode: "10.0.0" - - steps: - - checkout - - - run: - name: Checkout Dependencies with Carthahge - command: carthage bootstrap - - # Build the app and run tests - - run: - name: Build and run tests - command: > - set -o pipefail && - xcodebuild -workspace "$WORKSPACE" -scheme "$SCHEME" -sdk "$SDK" - -destination "$DESTINATION" -configuration Debug - ONLY_ACTIVE_ARCH=NO test | xcpretty -c; - environment: - LC_CTYPE: en_US.UTF-8 - LANG: en_US.UTF-8 - WORKSPACE: JSONAPIModel.xcworkspace - SCHEME: JSONAPIModel-iOS - SDK: iphonesimulator12.0 - DESTINATION: "OS=12.0,name=iPhone XS" diff --git a/README.md b/README.md index e27d3e6..4234c43 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # JSONAPIModel -[![CircleCI](https://circleci.com/gh/envoy/JSONAPIModel.svg?style=svg)](https://circleci.com/gh/envoy/JSONAPIModel) +[![CI](https://github.com/envoy/JSONAPIModel/actions/workflows/ci.yml/badge.svg)](https://github.com/envoy/JSONAPIModel/actions/workflows/ci.yml) Simple JSONAPI parser / serializer and data model