.github/workflows/main.yml in twitch-bot-3.1.0 vs .github/workflows/main.yml in twitch-bot-3.2.0
- old
+ new
@@ -5,31 +5,38 @@
- pull_request
jobs:
test:
runs-on: ubuntu-latest
-
+ container: ruby:2.6
+ services:
+ redis:
+ image: redis
+ options: >-
+ --health-cmd "redis-cli ping"
+ --health-interval 10s
+ --health-timeout 5s
+ --health-retries 5
steps:
- uses: actions/checkout@v2
- - name: Set up Ruby
- uses: actions/setup-ruby@v1
- with:
- ruby-version: 2.6.x
- name: Bundle
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- - name: Build and test
+ - name: Test
run: |
bundle exec rake test
+ env:
+ REDIS_HOST: redis
+ REDIS_PORT: 6379
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - name: Set up Ruby
+ - name: Setup
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- name: Bundle
run: |