Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
42 changes: 13 additions & 29 deletions .github/workflows/ci.yml → .github/workflows/ci-swiftpm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: CI (SwiftPM)

on:
push:
Expand All @@ -9,39 +9,21 @@ on:
pull_request:

jobs:
cocoapods:
name: CocoaPods Lint & Danger
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: bundle install
- run: bundle exec danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: rake podspec:lint

xcode:
name: Xcode ${{ matrix.xcode }} (${{ matrix.platform }})
runs-on: macos-latest
strategy:
matrix:
xcode: [11.7, 12]
platform: ["macos", "ios", "tvos"]
fail-fast: false
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app"
filter:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- uses: actions/checkout@v2
- id: skip_check
uses: fkirc/[email protected]
with:
submodules: true
- run: rake test:${{ matrix.platform }}
- if: ${{ matrix.platform == 'macos' }}
run: rake test:${{ matrix.platform }}_static
paths: '[".github/workflows/ci-swiftpm.yml", "Sources/**", "Tests/**", "Package.*"]'
do_not_skip: '["push", "workflow_dispatch", "schedule"]'

swiftpm_darwin:
name: SwiftPM, Darwin, Xcode ${{ matrix.xcode }}
needs: filter
if: ${{ needs.filter.outputs.should_skip != 'true' }}
runs-on: macos-latest
strategy:
matrix:
Expand All @@ -55,6 +37,8 @@ jobs:

swiftpm_linux:
name: SwiftPM, Linux
needs: filter
if: ${{ needs.filter.outputs.should_skip != 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/ci-xcode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI (Xcode)

on:
push:
branches:
- master
tags:
- "*"
pull_request:

jobs:
filter:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
paths: '[".github/workflows/ci-xcode.yml", "Externals", "Quick.xc*", "Sources/**", "Tests/**", "Rakefile"]'
do_not_skip: '["push", "workflow_dispatch", "schedule"]'

xcode:
name: Xcode ${{ matrix.xcode }} (${{ matrix.platform }})
needs: filter
if: ${{ needs.filter.outputs.should_skip != 'true' }}
runs-on: macos-latest
strategy:
matrix:
xcode: [11.7, 12]
platform: ["macos", "ios", "tvos"]
fail-fast: false
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: rake test:${{ matrix.platform }}
- if: ${{ matrix.platform == 'macos' }}
run: rake test:${{ matrix.platform }}_static
34 changes: 34 additions & 0 deletions .github/workflows/cocoapods.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CocoaPods

on:
push:
branches:
- master
tags:
- "*"
pull_request:

jobs:
filter:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
paths: '[".github/workflows/cocoapods.yml", "Quick.podspec", "Sources/**", "Gemfile*", "Rakefile"]'
do_not_skip: '["push", "workflow_dispatch", "schedule"]'

cocoapods:
name: CocoaPods Lint
needs: filter
if: ${{ needs.filter.outputs.should_skip != 'true' }}
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: rake podspec:lint
20 changes: 20 additions & 0 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Danger

on:
pull_request:

jobs:
danger:
name: Danger
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: bundle exec danger
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}