diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..eaf018e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + workflow_dispatch: + +jobs: + test: + runs-on: macos-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Select Xcode version + run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer + + - name: Show Xcode version + run: xcodebuild -version + + - name: Run tests + run: | + xcodebuild \ + -scheme "hsluv-objc" \ + -destination "platform=macOS,arch=x86_64" \ + -enableCodeCoverage YES \ + CODE_SIGNING_REQUIRED=NO \ + test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f963d2b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: objective-c -osx_image: xcode8.2 -script: - - xcodebuild -scheme "hsluv-objc" -destination "arch=x86_64" CODE_SIGNING_REQUIRED=NO test diff --git a/README.md b/README.md index ed75124..29d9810 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Cocoapod compatible](https://img.shields.io/cocoapods/v/hsluv-objc.svg)](https://cocoapods.org/pods/hsluv-objc) -[![Build Status](https://travis-ci.org/hsluv/hsluv-objc.svg?branch=master)](https://travis-ci.org/hsluv/hsluv-objc) +[![CI](https://github.com/hsluv/hsluv-objc/actions/workflows/ci.yml/badge.svg)](https://github.com/hsluv/hsluv-objc/actions/workflows/ci.yml) #hsluv-objc