diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..255f90a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Build and Unit Test + +on: + # Triggers the workflow on pull request events but only for the main branch + pull_request: + branches: [ main ] + +jobs: + build: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + # Select Xcode version + - name: Select Xcode version + run: sudo xcode-select -s '/Applications/Xcode_12.4.app/Contents/Developer' + - name: Show Xcode version + run: xcodebuild -version + # Run build + - name: Build + run: xcodebuild + -sdk iphonesimulator + -configuration Debug + build + # Run unit test + - name: Run tests + run: xcodebuild + -scheme UITabBrowser + -sdk iphonesimulator + -destination 'platform=iOS Simulator,name=iPhone 12 mini' + clean test diff --git a/README.md b/README.md index 4e1bb39..f25914b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # UITabBrowser +[![Build and Unit Test](https://github.com/ogaoga/UITabBrowser/actions/workflows/main.yml/badge.svg)](https://github.com/ogaoga/UITabBrowser/actions/workflows/main.yml) + The simplest tab browser for iOS. No tracking, ads, 3rd party library. ![Simulator Screen Shot - iPhone 12 mini - 2021-02-27 at 20 43 18](https://user-images.githubusercontent.com/93489/109386221-a3522380-793c-11eb-9714-b15e2741e886.png) diff --git a/UITabBrowser.xcodeproj/project.pbxproj b/UITabBrowser.xcodeproj/project.pbxproj index 9d08a7b..f76e393 100644 --- a/UITabBrowser.xcodeproj/project.pbxproj +++ b/UITabBrowser.xcodeproj/project.pbxproj @@ -771,14 +771,14 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 11; + CURRENT_PROJECT_VERSION = 12; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = UITabBrowser/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.1; + MARKETING_VERSION = 1.2; PRODUCT_BUNDLE_IDENTIFIER = com.example.UITabBrowser; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; @@ -792,14 +792,14 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 11; + CURRENT_PROJECT_VERSION = 12; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = UITabBrowser/Info.plist; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 1.1; + MARKETING_VERSION = 1.2; PRODUCT_BUNDLE_IDENTIFIER = com.example.UITabBrowser; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0;