-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
copy workflows from khiav223577/deep_pluck#42
- Loading branch information
1 parent
35576be
commit 8ad069a
Showing
1 changed file
with
59 additions
and
0 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,59 @@ | ||
name: Ruby | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'README.md' | ||
- 'CHANGELOG.md' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
name: Test | ||
if: "contains(github.event.commits[0].message, '[ci skip]') == false" | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: | ||
- 2.2 | ||
- 2.6 | ||
- 2.7 | ||
gemfile: | ||
- 3.2.gemfile | ||
- 4.2.gemfile | ||
- 5.0.gemfile | ||
- 5.1.gemfile | ||
- 5.2.gemfile | ||
- 6.0.gemfile | ||
exclude: | ||
- gemfile: 3.2.gemfile | ||
ruby: 2.6 | ||
- gemfile: 3.2.gemfile | ||
ruby: 2.7 | ||
- gemfile: 4.2.gemfile | ||
ruby: 2.7 | ||
- gemfile: 6.0.gemfile | ||
ruby: 2.2 | ||
env: | ||
BUNDLE_GEMFILE: "gemfiles/${{ matrix.gemfile }}" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | ||
- name: Run tests | ||
run: bundle exec rake | ||
- name: Publish code coverage | ||
if: ${{ success() }} | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} |