зеркало из
https://github.com/glebtv/telegram-bot.git
synced 2026-08-28 15:26:18 +03:00
Move to github actions from travis-ci
Этот коммит содержится в:
48
.github/workflows/ci.yml
поставляемый
Обычный файл
48
.github/workflows/ci.yml
поставляемый
Обычный файл
@@ -0,0 +1,48 @@
|
||||
name: Lint & Test
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
# lint:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - uses: actions/checkout@v3
|
||||
# - uses: ruby/setup-ruby@v1
|
||||
# with:
|
||||
# ruby-version: '3.0'
|
||||
# bundler-cache: true
|
||||
# - run: bundle exec rubocop
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
ruby:
|
||||
- '2.5'
|
||||
- '2.6'
|
||||
gemfile:
|
||||
- gemfiles/rails_61.gemfile
|
||||
- gemfiles/rails_60.gemfile
|
||||
- gemfiles/rails_52.gemfile
|
||||
include:
|
||||
# ruby 3.x
|
||||
- ruby: '3.0'
|
||||
gemfile: gemfiles/rails_61.gemfile
|
||||
- ruby: '3.0'
|
||||
gemfile: gemfiles/rails_60.gemfile
|
||||
# old rails
|
||||
- ruby: '2.5'
|
||||
gemfile: gemfiles/rails_51.gemfile
|
||||
- ruby: '2.5'
|
||||
gemfile: gemfiles/rails_50.gemfile
|
||||
- ruby: '2.5'
|
||||
gemfile: gemfiles/rails_42.gemfile
|
||||
env:
|
||||
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{ matrix.ruby }}
|
||||
bundler-cache: true
|
||||
- run: bundle exec rake spec
|
||||
Ссылка в новой задаче
Block a user