зеркало из
https://github.com/glebtv/yookassa.git
synced 2026-08-28 15:16:18 +03:00
47 строки
918 B
YAML
47 строки
918 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
ruby:
|
|
- "3.4"
|
|
- "4.0.6"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: ${{ matrix.ruby }}
|
|
bundler-cache: true
|
|
- name: Rubocop
|
|
run: bundle exec rubocop
|
|
- name: Rspec
|
|
run: bundle exec rspec --tag ~browser
|
|
|
|
browser-tests:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Ruby
|
|
uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: 4.0.6
|
|
bundler-cache: true
|
|
- name: Set up Chrome
|
|
uses: browser-actions/setup-chrome@v1
|
|
id: setup-chrome
|
|
- name: Browser specs (Cuprite)
|
|
run: bundle exec rspec --tag browser
|
|
env:
|
|
CHROME_PATH: ${{ steps.setup-chrome.outputs.chrome-path }}
|