Skip to content

Support communication with AWS SNS SDK. #501

Support communication with AWS SNS SDK.

Support communication with AWS SNS SDK. #501

Workflow file for this run

name: Rspec
on: push
jobs:
rubocop:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
- name: Cache Gems
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-3.2.1-event_source-gems-${{ hashFiles('**/event_source.gemspec') }}-${{ hashFiles('**/Gemfile' ) }}
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install
bundle exec rubocop-git trunk
rspec:
strategy:
fail-fast: false
matrix:
ruby_version: ['2.7.5', '3.0.5', '3.1.4', '3.2.2', '3.3.8', '3.4.4']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Boot RabbitMQ
run: |
sudo apt-get update
sudo apt-get install rabbitmq-server
sudo rabbitmqctl add_vhost event_source
sudo rabbitmqctl set_permissions -p event_source guest ".*" ".*" ".*"
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Cache Gems
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-${{matrix.ruby_version}}-event_source-gems-${{ hashFiles('**/event_source.gemspec') }}-${{ hashFiles('**/Gemfile' ) }}
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install
- name: Run rspec
run: |
bundle exec rspec
rspec-hosted:
strategy:
fail-fast: false
matrix:
ruby_version: ['2.7.5', '3.0.5', '3.1.4', '3.2.2', '3.3.8', '3.4.4']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Boot RabbitMQ
run: |
sudo apt-get update
sudo apt-get install rabbitmq-server
sudo rabbitmqctl add_vhost event_source
sudo rabbitmqctl set_permissions -p event_source guest ".*" ".*" ".*"
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby_version }}
- name: Cache Gems
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-${{matrix.ruby_version}}-event_source-gems-${{ hashFiles('**/event_source.gemspec') }}-${{ hashFiles('**/Gemfile' ) }}
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install
- name: Run rspec
run: |
cd spec/rails_app
bundle exec rspec