diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 2ca4439..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,15 +0,0 @@ -version: 2.1 -orbs: - ruby: circleci/ruby@0.1.2 - -jobs: - build: - docker: - - image: circleci/ruby:2.6.3-stretch-node - executor: ruby/default - steps: - - checkout - - ruby/bundle-install - - run: - name: tests - command: bundle exec rake diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml new file mode 100644 index 0000000..db7dc43 --- /dev/null +++ b/.github/workflows/ruby.yml @@ -0,0 +1,28 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + + runs-on: ubuntu-latest + + strategy: + matrix: + ruby-version: ['2.4', '2.5'] + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: rubocop + run: bundle exec rubocop + - name: tests + run: bundle exec rake test diff --git a/README.md b/README.md index b650497..7ff3686 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[![Circle CI](https://circleci.com/gh/infiton/capitalize-names.svg?style=shield)](https://circleci.com/gh/infiton/capitalize-names) # capitalize-names Simple proper name capitalization that handles edge cases. Originally based off of http://dzone.com/snippets/capitalize-proper-names