Skip to content

Commit

Permalink
CI reconfiguration (#774)
Browse files Browse the repository at this point in the history
* Add gem from Appraisals to Gemfile

* Remove appraisal from chewy.gemspec

* Remove Appraisals file

* Remove gemfiles of appraisal gem

* Revert "Remove gemfiles of appraisal gem"

This reverts commit c0bdcf1.

* Remove Appraisal gem comments from gemfiles

* Turn off CircleCI jobs

* Revert "Turn off CircleCI jobs"

This reverts commit 68f7f75.

* Remove CircleCI

* Exaxmple of GitHub Actions

* Try to rub rubocop lintr

* Revert "Try to rub rubocop lintr"

This reverts commit 19b76c6.

* Run rubocop lintr

* Set up Rubocop CI check via Rails way

* Add bundle command to CI

* Check CI for rspec-ruby-26-activerecord61

* Try to move run command to the separate section

* Correct run spaces

* Add names to runs

* Without command section

* Configs to run GHA CI

* Try to move rubocop run command to the separate section

* Add env vars and matrix of Gemfiles

* Add to CI full Rubocop flow v1.0

* Check CI work without Rubocop commands

* Run just Rubocop with new configs

* Run Rubocop with Checkout

* With uses, without working-directory

* Full Rubocop CI configs without defises

* Remove working-directory for Rubocop

* Add working-directory for Checkout

* Temporary use just one gemfile

* Temporary remove working-directory

* Set working-directory as default

* Split ruby version check into 2

* Rename working-repository to chewy in CI

* Revert "Rename working-repository to chewy in CI"

This reverts commit 5b8a7a2.

* Temporary chech ruby version in the simple way

* Temporary avoid ruby version check

* Move ruby version setting

* Goes back to ruby image setting up

* Without CI ruby check

* Debug currect directory in CI

* Check ruby version without defis

* Check ruby version without defis in a separate section

* Check ruby version without defis without redundant text

* Check ruby version with defis name section

* Temporary proceed without ruby and gemfilelock version

* Change caching process

* Use official template to set up ruby

* Uses without ./

* Add ruby -v check

* Ruby version check with command name

* Add full Rubocop CI

* Without repo

* Cherry-pick .github/workflows/ruby.yml from Chewy#775 PR

* Remove old GHA CI file

* Remove old GHA CI folder

* Remove gemfile sequel as unneeded

* Remove kaminari from Gemfile

* Add GHA badge to Readme with temporary link to current PR branch

* Remove CircleCI badge from Readme

* Update GHA badge link

* Request GHA endpoint for Readme badge

* Update GHA workflow name

* Rename GHA file

* Update GHA Readme badge

* Make snakecase for CI name

* Rename paths for GHA badge in Readme

* Make GHA file in capital letters

* Try GHA badge with uppercase in link

* Revert "Try GHA badge with uppercase in link"

This reverts commit defb731.

* Update GHA file name

* Update GHA badge with updated GHA file name

* Update CHANGELOG

* Remove CHANGELOG changes
  • Loading branch information
Vitalina-Vakulchyk authored Mar 22, 2021
1 parent 90b5c6a commit a1c0b5d
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 326 deletions.
224 changes: 0 additions & 224 deletions .circleci/config.yml

This file was deleted.

58 changes: 58 additions & 0 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI

on: [push]

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7]
gemfile: [rails.5.2.activerecord, rails.5.2.mongoid.6.4, rails.6.0.activerecord, rails.6.1.activerecord]
name: ${{ matrix.ruby }}-${{ matrix.gemfile }}

env:
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.10.1
port: 9250
- name: Tests
run: bundle exec rspec

ruby-3-0-activerecord-6-1:
runs-on: ubuntu-latest
env:
BUNDLE_GEMFILE: gemfiles/rails.6.1.activerecord.gemfile
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: Run Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 7.10.1
port: 9250
- name: Tests
run: bundle exec rspec

rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: bundle exec rubocop --format simple
81 changes: 0 additions & 81 deletions Appraisals

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Gem Version](https://badge.fury.io/rb/chewy.svg)](http://badge.fury.io/rb/chewy)
[![CircleCI](https://circleci.com/gh/toptal/chewy/tree/master.svg?style=svg)](https://circleci.com/gh/toptal/chewy/tree/master)
[![GitHub Actions](https://github.com/toptal/chewy/actions/workflows/ruby.yml/badge.svg)](https://github.com/toptal/chewy/actions/workflows/ruby.yml)
[![Code Climate](https://codeclimate.com/github/toptal/chewy.svg)](https://codeclimate.com/github/toptal/chewy)
[![Inline docs](http://inch-ci.org/github/toptal/chewy.svg?branch=master)](http://inch-ci.org/github/toptal/chewy)

Expand Down
1 change: 0 additions & 1 deletion chewy.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Gem::Specification.new do |spec| # rubocop:disable Metrics/BlockLength
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_development_dependency 'appraisal'
spec.add_development_dependency 'database_cleaner'
spec.add_development_dependency 'elasticsearch-extensions'
spec.add_development_dependency 'rake'
Expand Down
2 changes: 0 additions & 2 deletions gemfiles/rails.5.2.activerecord.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file was generated by Appraisal

source 'https://rubygems.org'

gem 'activejob', '~> 5.2.0'
Expand Down
2 changes: 0 additions & 2 deletions gemfiles/rails.5.2.mongoid.6.4.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file was generated by Appraisal

source 'https://rubygems.org'

gem 'activejob', '~> 5.2.0'
Expand Down
2 changes: 0 additions & 2 deletions gemfiles/rails.6.0.activerecord.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# This file was generated by Appraisal

source 'https://rubygems.org'

gem 'activejob', '~> 6.0.0'
Expand Down
Loading

0 comments on commit a1c0b5d

Please sign in to comment.