Skip to content

Commit

Permalink
Add GitHub Actions (#48)
Browse files Browse the repository at this point in the history
- Add GitHub Action's workflow to run the tests on every pull request into `develop` or `master`
- Add GitHub Action's workflow to automatically distribute Cocoapod to the main specs repo
  • Loading branch information
krml19 authored Feb 18, 2021
1 parent 99a8766 commit a7a030a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: sh scripts/install.sh
- name: Run tests
run: sh scripts/test.sh
- name: Deploy to Cocoapods
run: sh scripts/deploy.sh
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run tests

on:
push:
pull_request:
branches:
- develop
- master
Expand All @@ -11,5 +11,7 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sh scripts/install.sh
- name: Run tests
run: sh scripts/test.sh
run: sh scripts/test.sh
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Backtrace (1.5.6):
- Backtrace (1.6.0):
- Backtrace-PLCrashReporter
- Backtrace-PLCrashReporter (1.5.4)
- Nimble (9.0.0)
Expand All @@ -22,7 +22,7 @@ EXTERNAL SOURCES:
:path: "./Backtrace.podspec"

SPEC CHECKSUMS:
Backtrace: 90f5a8b6bc9d417a444ce62435bbda0c54fa8d89
Backtrace: 90e82b3be4a6bde054dcb4663511a37113c348a8
Backtrace-PLCrashReporter: 65b9aae5468bb6af6b55b88de22b49e031331054
Nimble: 3b4ec3fd40f1dc178058e0981107721c615643d8
Quick: 60f0ea3b8e0cfc0df3259a5c06a238ad8b3c46e0
Expand Down
5 changes: 4 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ set -o pipefail # to exit when the status of the last command that threw a non-z
set -o nounset # to exit when your script tries to use undeclared variables
set -o xtrace # to trace what gets executed. Useful for debugging

brew bundle
# ignore installation errors silently
brew bundle || true

pod install

0 comments on commit a7a030a

Please sign in to comment.