1
0
зеркало из https://github.com/glebtv/yookassa.git synced 2026-09-03 17:55:51 +03:00

Merge pull request #3 from PaymentInstruments/github-actions

Replacing Circle CI with GHA
Этот коммит содержится в:
Ivan Shamatov
2021-10-28 19:58:11 +03:00
коммит произвёл GitHub
родитель b0ed579289 dc4a878b91
Коммит 7b45a4e3ab
4 изменённых файлов: 30 добавлений и 30 удалений

Просмотреть файл

@@ -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

28
.github/workflows/main.yml поставляемый Обычный файл
Просмотреть файл

@@ -0,0 +1,28 @@
name: Ruby
on:
push:
branches:
- master
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

Просмотреть файл

@@ -95,4 +95,4 @@ DEPENDENCIES
yookassa!
BUNDLED WITH
1.17.3
2.2.22

Просмотреть файл

@@ -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)