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/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..485bf64 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,21 @@ +name: CI + +on: + push: + branches: [master] + pull_request: + +jobs: + test: + runs-on: macos-26 + steps: + - uses: actions/checkout@v5 + # 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 .swiftpm/xcode/package.xcworkspace -scheme JSONAPIModel + -destination 'platform=iOS Simulator,name=iPhone 17,OS=latest' + -configuration Debug test | xcbeautify 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