Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI with Github Actions #1

Merged
merged 1 commit into from
Jun 3, 2020
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
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: CI

on:
push:
paths:
- ".github/workflows/ci.yml"
- ".rubocop.yml"
- "*.gemspec"
- lib/**
- spec/**
- Rakefile
- Gemfile
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
name: Ruby ${{ matrix.ruby }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.4, 2.5, 2.6, 2.7, jruby, truffleruby]
steps:
- uses: actions/checkout@v1
- uses: actions/cache@v2
with:
path: vendor/bundle
key: gems-${{ matrix.ruby }}-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: gems-${{ matrix.ruby }}
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install latest bundler
run: |
gem install bundler --no-document
bundle config set without 'tools benchmarks docs'
- name: Bundle install
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Run Rubocop
run: bundle exec rubocop --parallel
- name: Run all tests
run: bundle exec rake
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# cloudimage-rb

`cloudimage-rb` is the official ruby API wrapper for
`cloudimage-rb` is the official Ruby API wrapper for
[Cloudimage's API](https://docs.cloudimage.io/go/cloudimage-documentation-v7/en/introduction).

Supports Ruby `2.4` and above, `JRuby`, and `TruffleRuby`.

## Installation

Add this line to your application's Gemfile:
Expand Down