From 58613844380e75eced485eb4a9e7046ab933a6cb Mon Sep 17 00:00:00 2001 From: Ivan Shamatov Date: Thu, 28 Oct 2021 19:51:19 +0300 Subject: [PATCH] Replacing Circle ci with GHA --- .circleci/config.yml | 28 ---------------------------- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ Gemfile.lock | 2 +- README.md | 2 +- 4 files changed, 30 insertions(+), 30 deletions(-) delete mode 100644 .circleci/config.yml create mode 100644 .github/workflows/main.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index f9b4f4b..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,28 +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 - - restore_cache: - keys: - - yookassa-bundle-{{ checksum "Gemfile.lock" }} - - yookassa-bundle- - - run: - name: Install dependencies - command: | - bundle check || bundle install --jobs=4 --retry=3 --path vendor/bundle - - save_cache: - paths: - - ./vendor/bundle - key: yookassa-bundle-{{ checksum "Gemfile.lock" }} - - - run: - name: Run tests - command: | - bundle exec rspec --profile 10 --format progress diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..466047c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Ruby + +on: + push: + branches: + - main + + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby: + - 2.6 + - 2.7 + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Run the default task + run: bundle exec rspec diff --git a/Gemfile.lock b/Gemfile.lock index 042fa90..22aa404 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -95,4 +95,4 @@ DEPENDENCIES yookassa! BUNDLED WITH - 1.17.3 + 2.2.22 diff --git a/README.md b/README.md index 4e8419b..2fbf548 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # YooKassa API Ruby Client -[![Yookassa](https://circleci.com/gh/paderinandrey/yookassa.svg?style=svg)](https://circleci.com/gh/paderinandrey/yookassa) +[![Yookassa](https://github.com/PaymentInstruments/yookassa/actions/workflows/main/badge.svg)](https://github.com/PaymentInstruments/yookassa) [![Gem Version][gem-badger]][gem] [![License](https://img.shields.io/github/license/paderinandrey/yookassa.svg)](https://github.com/paderinandrey/yookassa)