|
| 1 | +name: ci |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: [ main ] |
| 6 | + pull_request: |
| 7 | + branches: [ main ] |
| 8 | + |
| 9 | +env: |
| 10 | + CI_XCODE_VER: '/Applications/Xcode_11.7.app/Contents/Developer' |
| 11 | + |
| 12 | +jobs: |
| 13 | + |
| 14 | + ios: |
| 15 | + runs-on: macos-latest |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v2 |
| 18 | + - name: Submodules |
| 19 | + run: | |
| 20 | + git submodule update --init --recursive |
| 21 | + - name: Build-Test |
| 22 | + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk iphonesimulator -scheme ParseLiveQuery-iOS -configuration Debug -destination "platform=iOS Simulator,name=iPhone 11" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c |
| 23 | + - name: Send codecov |
| 24 | + run: bash <(curl https://codecov.io/bash) |
| 25 | + |
| 26 | + macos: |
| 27 | + runs-on: macos-latest |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v2 |
| 30 | + - name: Submodules |
| 31 | + run: | |
| 32 | + git submodule update --init --recursive |
| 33 | + - name: Build-Test |
| 34 | + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -sdk macosx -scheme ParseLiveQuery-OSX -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c |
| 35 | + - name: Send codecov |
| 36 | + run: bash <(curl https://codecov.io/bash) |
| 37 | + |
| 38 | + tvos: |
| 39 | + runs-on: macos-latest |
| 40 | + steps: |
| 41 | + - uses: actions/checkout@v2 |
| 42 | + - name: Submodules |
| 43 | + run: | |
| 44 | + git submodule update --init --recursive |
| 45 | + - name: Build-Test |
| 46 | + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme ParseLiveQuery-tvOS -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c |
| 47 | + - name: Send codecov |
| 48 | + run: bash <(curl https://codecov.io/bash) |
| 49 | + |
| 50 | + watchos: |
| 51 | + runs-on: macos-latest |
| 52 | + steps: |
| 53 | + - uses: actions/checkout@v2 |
| 54 | + - name: Submodules |
| 55 | + run: | |
| 56 | + git submodule update --init --recursive |
| 57 | + - name: Build |
| 58 | + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme ParseLiveQuery-watchOS -configuration Debug GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcpretty -c |
| 59 | + - name: Send codecov |
| 60 | + run: bash <(curl https://codecov.io/bash) |
| 61 | + |
| 62 | + demo-swift: |
| 63 | + needs: ios |
| 64 | + runs-on: macos-latest |
| 65 | + steps: |
| 66 | + - uses: actions/checkout@v2 |
| 67 | + - name: Submodules |
| 68 | + run: | |
| 69 | + git submodule update --init --recursive |
| 70 | + - name: Clean |
| 71 | + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo | xcpretty -c |
| 72 | + - name: Build |
| 73 | + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo -configuration Debug | xcpretty -c |
| 74 | + - name: Send codecov |
| 75 | + run: bash <(curl https://codecov.io/bash) |
| 76 | + |
| 77 | + demo-objective-c: |
| 78 | + needs: ios |
| 79 | + runs-on: macos-latest |
| 80 | + steps: |
| 81 | + - uses: actions/checkout@v2 |
| 82 | + - name: Submodules |
| 83 | + run: | |
| 84 | + git submodule update --init --recursive |
| 85 | + - name: Clean |
| 86 | + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild clean -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC | xcpretty -c |
| 87 | + - name: Build |
| 88 | + run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild build -workspace ParseLiveQuery.xcworkspace -scheme LiveQueryDemo-ObjC -configuration Debug | xcpretty -c |
| 89 | + - name: Send codecov |
| 90 | + run: bash <(curl https://codecov.io/bash) |
| 91 | + |
| 92 | + cocoapods: |
| 93 | + runs-on: macos-latest |
| 94 | + steps: |
| 95 | + - uses: actions/checkout@v2 |
| 96 | + - name: CocoaPods |
| 97 | + run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose |
| 98 | + |
| 99 | + docs: |
| 100 | + needs: ios |
| 101 | + runs-on: macos-latest |
| 102 | + steps: |
| 103 | + - uses: actions/checkout@v2 |
| 104 | + - name: Cache Gems |
| 105 | + id: cache-gems |
| 106 | + uses: actions/cache@v2 |
| 107 | + with: |
| 108 | + path: vendor/bundle |
| 109 | + key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }} |
| 110 | + restore-keys: | |
| 111 | + ${{ runner.os }}-gem- |
| 112 | + - name: Install Bundle |
| 113 | + run: | |
| 114 | + bundle config path vendor/bundle |
| 115 | + bundle install |
| 116 | + - name: Create Jazzy Docs |
| 117 | + run: | |
| 118 | + ./jazzy.sh |
| 119 | + - name: Deploy Jazzy Docs |
| 120 | + if: github.ref == 'refs/heads/main' |
| 121 | + uses: peaceiris/actions-gh-pages@v3 |
| 122 | + with: |
| 123 | + github_token: ${{ secrets.GITHUB_TOKEN }} |
| 124 | + publish_dir: ./docs |
0 commit comments