Skip to content

Commit

Permalink
Move cocoapods-lint to a master-only workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuy committed Aug 17, 2019
1 parent 1374499 commit bc53b94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci-master-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI (master-only jobs)

on: push

push:
branches:
- master

jobs:
cocoapods-lint:
name: Verify that podspec lints
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh cocoapods-lint
11 changes: 1 addition & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: [push]
on: push

jobs:
tests:
Expand Down Expand Up @@ -51,12 +51,3 @@ jobs:
steps:
- uses: actions/checkout@v1
- run: ./build.sh carthage
cocoapods-lint:
name: Verify that podspec lints (master only)
needs: tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
if: github.ref == 'refs/heads/master'
- name: Verify that podspec lints (master only)
run: ./build.sh cocoapods-lint

0 comments on commit bc53b94

Please sign in to comment.