mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
ci: move from TravisCI to GitHub Actions
This commit is contained in:
parent
17b7368a95
commit
50b9f37156
2 changed files with 63 additions and 51 deletions
63
.github/workflows/build.yml
vendored
Normal file
63
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
name: build
|
||||
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-18.04
|
||||
services:
|
||||
redis:
|
||||
image: redis
|
||||
ports:
|
||||
- 6379:6379
|
||||
memcached:
|
||||
image: memcached
|
||||
ports:
|
||||
- 11211:11211
|
||||
strategy:
|
||||
matrix:
|
||||
ruby:
|
||||
- 3.0.0
|
||||
- 2.7.2
|
||||
- 2.6.6
|
||||
- 2.5.8
|
||||
gemfile:
|
||||
- rack_2
|
||||
- rack_1
|
||||
- rails_6_1
|
||||
- rails_6_0
|
||||
- rails_5_2
|
||||
- rails_4_2
|
||||
- dalli2
|
||||
- redis_4
|
||||
- redis_3
|
||||
- connection_pool_dalli
|
||||
- active_support_redis_cache_store
|
||||
- active_support_redis_cache_store_pooled
|
||||
- redis_store
|
||||
- active_support_redis_store
|
||||
exclude:
|
||||
- gemfile: rack_1
|
||||
ruby: 3.0.0
|
||||
- gemfile: rails_5_2
|
||||
ruby: 3.0.0
|
||||
- gemfile: rails_4_2
|
||||
ruby: 3.0.0
|
||||
- gemfile: dalli2
|
||||
ruby: 3.0.0
|
||||
- gemfile: connection_pool_dalli
|
||||
ruby: 3.0.0
|
||||
- gemfile: rack_1
|
||||
ruby: 2.7.2
|
||||
- gemfile: rails_4_2
|
||||
ruby: 2.7.2
|
||||
env:
|
||||
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: ${{ matrix.ruby }}
|
||||
bundler-cache: true
|
||||
- run: bundle exec rake
|
||||
|
||||
51
.travis.yml
51
.travis.yml
|
|
@ -1,51 +0,0 @@
|
|||
dist: bionic
|
||||
language: ruby
|
||||
cache: bundler
|
||||
|
||||
rvm:
|
||||
- 3.0.0
|
||||
- 2.7.2
|
||||
- 2.6.6
|
||||
- 2.5.8
|
||||
|
||||
before_install:
|
||||
- yes | gem update --system
|
||||
- gem install bundler -v "~> 2.0"
|
||||
|
||||
gemfile:
|
||||
- gemfiles/rack_2.gemfile
|
||||
- gemfiles/rack_1.gemfile
|
||||
- gemfiles/rails_6_1.gemfile
|
||||
- gemfiles/rails_6_0.gemfile
|
||||
- gemfiles/rails_5_2.gemfile
|
||||
- gemfiles/rails_4_2.gemfile
|
||||
- gemfiles/dalli2.gemfile
|
||||
- gemfiles/redis_4.gemfile
|
||||
- gemfiles/redis_3.gemfile
|
||||
- gemfiles/connection_pool_dalli.gemfile
|
||||
- gemfiles/active_support_redis_cache_store.gemfile
|
||||
- gemfiles/active_support_redis_cache_store_pooled.gemfile
|
||||
- gemfiles/redis_store.gemfile
|
||||
- gemfiles/active_support_redis_store.gemfile
|
||||
|
||||
matrix:
|
||||
exclude:
|
||||
- gemfile: gemfiles/rack_1.gemfile
|
||||
rvm: 3.0.0
|
||||
- gemfile: gemfiles/rails_5_2.gemfile
|
||||
rvm: 3.0.0
|
||||
- gemfile: gemfiles/rails_4_2.gemfile
|
||||
rvm: 3.0.0
|
||||
- gemfile: gemfiles/dalli2.gemfile
|
||||
rvm: 3.0.0
|
||||
- gemfile: gemfiles/connection_pool_dalli.gemfile
|
||||
rvm: 3.0.0
|
||||
- gemfile: gemfiles/rack_1.gemfile
|
||||
rvm: 2.7.2
|
||||
- gemfile: gemfiles/rails_4_2.gemfile
|
||||
rvm: 2.7.2
|
||||
fast_finish: true
|
||||
|
||||
services:
|
||||
- redis
|
||||
- memcached
|
||||
Loading…
Reference in a new issue