-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (50 loc) · 1.31 KB
/
test.yaml
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
42
43
44
45
46
47
48
49
50
51
52
name: test
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- name: Install bundler
run: gem install bundler
- name: Install dependencies
run: bundle install --jobs 4
- name: Run test
run: bundle exec rubocop lib
test:
runs-on: ubuntu-latest
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
strategy:
matrix:
ruby: ['3.2.2', '3.1.4', '3.0.6', '2.7.8', '2.6.10']
steps:
- uses: actions/checkout@master
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Install libsixel
run: sudo apt-get install libsixel-bin
- name: Install bundler
run: gem install bundler
- name: Install dependencies
run: bundle install --jobs 4
- name: Run test
env:
COVERAGE: true
CODECOV_TOKEN: d3d0fd4f-db2c-439b-9331-8e1d992813ad
AWS_REGION: ap-northeast-1
run: bundle exec rspec