-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (34 loc) · 958 Bytes
/
main.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
41
name: Ruby
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: [2.5, 2.6, 2.7, 3.0]
name: Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/bundle
key: bundle-${{ hashFiles('**/Gemfile.lock') }}
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install bundler
run: gem install bundler
- name: Bundle install
run: bundle install --jobs 4 --retry 3
env:
RAILS_ENV: test
- name: Run test
run: rake test
env:
RAILS_ENV: test
YOUR_SELLER_ID: YOUR_SELLER_ID
YOUR_APPLICATION_ID: YOUR_APPLICATION_ID
YOUR_APPLICATION_SECRET: YOUR_APPLICATION_SECRET
YOUR_REFRESH_TOKEN: YOUR_REFRESH_TOKEN