-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from travis to github actions
- Loading branch information
Showing
8 changed files
with
214 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Danger | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
|
||
jobs: | ||
check: | ||
name: Danger Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- | ||
name: Run Danger | ||
run: bundle exec danger --verbose --dangerfile=rakelib/Dangerfile | ||
env: | ||
DANGER_GITHUB_API_TOKEN: ${{ secrets.danger_github_api_token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Lint Cocoapods | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: Pod Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- | ||
name: Lint podspec | ||
run: bundle exec rake pod:lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Check Versions | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'release/**' | ||
|
||
jobs: | ||
check_versions: | ||
name: Check Versions | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- | ||
name: Check versions | ||
run: bundle exec rake release:check_versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: SwiftLint | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: SwiftLint | ||
runs-on: macos-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- | ||
name: Lint source code | ||
run: bundle exec rake lint:code | ||
- | ||
name: Lint tests source code | ||
run: bundle exec rake lint:tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish on Tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cocoapods: | ||
name: Push To CocoaPods | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- | ||
name: Push to CocoaPods | ||
run: bundle exec rake release:cocoapods | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{secrets.COCOAPODS_TRUNK_TOKEN}} | ||
|
||
github: | ||
name: GitHub Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- | ||
name: Create release on GitHub | ||
run: bundle exec rake release:github | ||
env: | ||
DANGER_GITHUB_API_TOKEN: ${{ secrets.danger_github_api_token }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Test SPM | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
|
||
jobs: | ||
linux: | ||
name: Test SPM Linux | ||
runs-on: ubuntu-latest | ||
container: swiftgen/swift:5.6 | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
# Note: we can't use `ruby/setup-ruby` on custom docker images, so we | ||
# have to do our own caching | ||
name: Cache gems | ||
uses: actions/cache@v3 | ||
with: | ||
path: vendor/bundle | ||
key: ${{ runner.os }}-gems-${{ hashFiles('Gemfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-gems- | ||
- | ||
name: Cache SPM | ||
uses: actions/cache@v3 | ||
with: | ||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- | ||
- | ||
name: Bundle install | ||
run: | | ||
bundle config path vendor/bundle | ||
bundle install --jobs 4 --retry 3 | ||
- | ||
name: Run tests | ||
run: bundle exec rake spm:test | ||
|
||
macos: | ||
name: Test SPM macOS | ||
runs-on: macos-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
- | ||
name: Cache SPM | ||
uses: actions/cache@v3 | ||
with: | ||
path: .build | ||
key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} | ||
restore-keys: | | ||
${{ runner.os }}-spm- | ||
- | ||
name: Run tests | ||
run: bundle exec rake spm:test |
This file was deleted.
Oops, something went wrong.