-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (33 loc) · 1.03 KB
/
docs_and_rspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Rubocop and Rspec
on: push
jobs:
rspec:
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: 2.6
- name: Cache Gems
uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-event_source-gems-${{ hashFiles('**/Gemfile.lock') }}-${{ hashFiles('**/Gemfile' ) }}
restore-keys: |
${{ runner.os }}-event_source-gems-${{ hashFiles('**/Gemfile.lock') }}-${{ hashFiles('**/Gemfile' ) }}
- name: bundle install
run: |
bundle config path vendor/bundle
bundle install
# - name: Run rubocop
# run: |
# bundle exec rubocop
- name: Run rspec
run: |
bundle exec rspec