зеркало из
https://github.com/glebtv/yookassa.git
synced 2026-09-07 19:35:51 +03:00
Replacing Circle ci with GHA
Этот коммит содержится в:
@@ -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
поставляемый
Обычный файл
28
.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
|
||||||
@@ -95,4 +95,4 @@ DEPENDENCIES
|
|||||||
yookassa!
|
yookassa!
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.17.3
|
2.2.22
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# YooKassa API Ruby Client
|
# YooKassa API Ruby Client
|
||||||
|
|
||||||
[](https://circleci.com/gh/paderinandrey/yookassa)
|
[](https://github.com/PaymentInstruments/yookassa)
|
||||||
[![Gem Version][gem-badger]][gem]
|
[![Gem Version][gem-badger]][gem]
|
||||||
[](https://github.com/paderinandrey/yookassa)
|
[](https://github.com/paderinandrey/yookassa)
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user