-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.1 KB
/
pull_request.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
35
36
37
38
39
40
name: Pull request
on:
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
services:
memcached:
image: memcached:1.4.31
ports:
- 11211/tcp
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 3.1.4
uses: actions/setup-ruby@v1
with:
ruby-version: '3.1.4'
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install
run: |
gem install bundler
bundle config set --local path 'vendor/bundle'
bundle install --jobs 4 --retry 3
- name: Lint and Test
env:
MEMCACHE_SERVERS: localhost:${{ job.services.memcached.ports[11211] }}
ES_HOST: ${{ secrets.RE3DATA_ES_HOST }}
ELASTIC_USER: ${{ secrets.RE3DATA_ES_USER }}
ELASTIC_PASSWORD: ${{ secrets.RE3DATA_ES_PASSWORD }}
run: |
# bundle exec rubocop
bundle exec rspec
echo $?