Skip to content

Switch to github actions #1581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
Jan 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d8f3f6f
switch to github actions
cbaker6 Dec 16, 2020
87efb36
fix actions branch
cbaker6 Dec 16, 2020
2a3f1aa
add cache to actions and make release use xcode11.7
cbaker6 Dec 16, 2020
4ed984f
update order
cbaker6 Dec 16, 2020
ae20702
fix release and other builds
cbaker6 Dec 16, 2020
a72a6ee
switch all actions back to xcode11
cbaker6 Dec 16, 2020
5b94c64
properly set xcode11
cbaker6 Dec 16, 2020
5a72170
see if parseui builds on xcode 11.6
cbaker6 Dec 16, 2020
8858245
add release actions, switch badges
cbaker6 Dec 16, 2020
6b33f05
Make ParseUI run on Xcode11.7
cbaker6 Dec 16, 2020
d6340cb
change filename
cbaker6 Dec 17, 2020
00d2add
update release
cbaker6 Dec 17, 2020
4b519dc
only release on publish
cbaker6 Dec 17, 2020
9c87847
Updates FBSDK download URL in ParseUI build script
drdaz Dec 17, 2020
439fdd2
Fix bad iOS tests that failed constantly in Xcode 12 and randomly in …
cbaker6 Dec 18, 2020
0de37ad
run all on xcode 12 except for release
cbaker6 Dec 18, 2020
909a2d3
fix curl command in ParseUI script
cbaker6 Dec 18, 2020
cd4a0f3
run ParseUI build in xcode 11
cbaker6 Dec 18, 2020
48078a9
ParseUI on xcode 12
cbaker6 Dec 18, 2020
89888a8
fixed multiple bolts files in ParsUI-swift
cbaker6 Dec 18, 2020
219b338
add missing bolts to Parse project
cbaker6 Dec 18, 2020
12811cf
Try ParseUI with Xcode 11.6
cbaker6 Dec 18, 2020
2ee589d
add dependencies
cbaker6 Dec 18, 2020
17c3b9b
Merge branch 'githubactions' of https://github.com/parse-community/Pa…
cbaker6 Dec 18, 2020
894a68d
add Parse dependency to ParseUI
cbaker6 Dec 18, 2020
b6b9b50
try ParseUI swift
cbaker6 Dec 18, 2020
d6316bb
Update ci.yml
cbaker6 Dec 18, 2020
78c5d47
add FB script to ParseUI-swift, return ParseUI-obj back to the way it…
cbaker6 Dec 18, 2020
4062cb1
Update code in ParseUI project
cbaker6 Dec 18, 2020
af0720f
Switch ParseUI back to all
cbaker6 Dec 18, 2020
c0d6801
move parseui to circle
cbaker6 Dec 18, 2020
54ac710
move parseui to circle
cbaker6 Dec 18, 2020
65fb107
revert
cbaker6 Dec 18, 2020
158649c
clean up ParseUI
cbaker6 Dec 18, 2020
802b99f
Update Carthage before build
cbaker6 Dec 18, 2020
e4d4a18
Update ci.yml
cbaker6 Dec 18, 2020
dff0d1c
Update ci.yml
cbaker6 Dec 19, 2020
b383c53
fix ParseUI build
cbaker6 Dec 19, 2020
f38b54c
Update ci.yml
cbaker6 Dec 19, 2020
e9e0ce7
make parseUI run after facebook to give priority to the first 5
cbaker6 Dec 19, 2020
642f2ca
Bump codecov
cbaker6 Dec 19, 2020
7f8e9bd
Fix threading issues that caused random failures in tests: testMigrat…
cbaker6 Dec 19, 2020
1f5bd92
Merge remote-tracking branch 'refs/remotes/origin/githubactions'
cbaker6 Dec 19, 2020
616bc4e
Move waitForTestExpectations in test cases
cbaker6 Dec 19, 2020
1f13f90
Make longer running builds start in first round
cbaker6 Dec 21, 2020
58b38a9
Fix docs build
cbaker6 Dec 21, 2020
5cbfbd8
Revert test change, will fail as there's something up with the failin…
cbaker6 Jan 5, 2021
b9bd19a
Merge branch 'githubactions' of https://github.com/parse-community/Pa…
cbaker6 Jan 5, 2021
fc6c8db
Disable ParseClientConfigurationTests.testExtensionDataSharing for now
cbaker6 Jan 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 1 addition & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
defaults: &defaults
macos:
xcode: "11.6.0"
xcode: "11.7.0"
shell: /bin/bash --login -eo pipefail
aliases:
- &cache-pull
Expand All @@ -25,38 +25,6 @@ aliases:

version: 2
jobs:
ios:
<<: *defaults
steps:
- checkout
- restore_cache: *cache-pull
- run: *prepare
- save_cache: *cache-push
- run: bundle exec rake test:ios
- run: bash <(curl -s https://codecov.io/bash)
- store_test_results:
path: build/reports
macos:
<<: *defaults
steps:
- checkout
- restore_cache: *cache-pull
- run: *prepare
- save_cache: *cache-push
- run:
name: "Create and set the default keychain"
command: |
security create-keychain -p "" temporary
security default-keychain -s temporary
security unlock-keychain -p "" temporary
security set-keychain-settings -lut 7200 temporary
- run: bundle exec rake test:macos
- run: bash <(curl -s https://codecov.io/bash)
- store_test_results:
path: build/reports
- store_artifacts:
path: build/reports
destination: test_results
carthage:
<<: *defaults
steps:
Expand All @@ -70,8 +38,6 @@ workflows:
version: 2
pr:
jobs:
- ios
- macos
- carthage
nightly:
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ coverage:
changes: false
project:
default:
target: 65
target: 74
comment: false
186 changes: 186 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CI_XCODE_VER: '/Applications/Xcode_11.7.app/Contents/Developer'
CI_XCODE_VER_OLDER: '/Applications/Xcode_11.6.app/Contents/Developer'

jobs:
ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Submodules and Bundle Install
run: |
git submodule update --init --recursive
sudo gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- name: Build-Test
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake test:ios
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Submodules and Bundle Install
run: |
git submodule update --init --recursive
sudo gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- name: Create and set the default keychain
run: |
security create-keychain -p "" temporary
security default-keychain -s temporary
security unlock-keychain -p "" temporary
security set-keychain-settings -lut 7200 temporary
- name: Build-Test
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake test:macos
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

facebook_utils:
needs: macos
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Submodules and Bundle Install
run: |
git submodule update --init --recursive
sudo gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- name: Build-Test
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake test:facebook_utils:ios
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

twitter_utils:
needs: macos
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Submodules and Bundle Install
run: |
git submodule update --init --recursive
sudo gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- name: Build-Test
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake test:twitter_utils:ios
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

parseui:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Submodules and Bundle Install
run: |
git submodule update --init --recursive
sudo gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- name: Build-Test
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake test:parseui:all
- name: Send codecov
run: bash <(curl https://codecov.io/bash)

cocoapods:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose

release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Submodules and Bundle Install
run: |
git submodule update --init --recursive
sudo gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- name: Build Release
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake package:release
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_VER }}

docs:
needs: macos
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Submodules and Bundle Instal
run: |
git submodule update --init --recursive
sudo gem install bundler
bundle config path vendor/bundle
bundle install
- name: Create Jazzy Docs
run: |
./Scripts/jazzy.sh
77 changes: 77 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: release
on:
release:
types: [published]
env:
CI_XCODE_VER: '/Applications/Xcode_11.7.app/Contents/Developer'

jobs:
cocoapods:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod lib lint --allow-warnings --verbose
- name: Deploy CocoaPods
run: set -o pipefail && env NSUnbufferedIO=YES pod trunk push Parse.podspec --allow-warnings --verbose
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
DEVELOPER_DIR: ${{ env.CI_XCODE_VER }}

docs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Install Bundle
run: |
bundle config path vendor/bundle
bundle install
- name: Create Jazzy Docs
run: |
./Scripts/jazzy.sh
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_VER }}
- name: Deploy Jazzy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs

release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Cache Gems
id: cache-gems
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Submodules and Bundle Install
run: |
git submodule update --init --recursive
sudo gem install bundler
bundle config set path 'vendor/bundle'
bundle install
- name: Build Release
run: set -o pipefail && env NSUnbufferedIO=YES bundle exec rake package:release
env:
DEVELOPER_DIR: ${{ env.CI_XCODE_VER }}
- name: Deploy assets
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/release/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
Loading