-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (43 loc) · 1.04 KB
/
test.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
42
43
name: test
on:
- push
env:
CI: 'true'
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:14
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: test
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
redis:
image: redis:7
ports:
- 6379:6379
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.5
- name: apt install
run: |
sudo apt update
sudo apt install ffmpeg
sudo apt install libpq-dev
sudo apt install libidn11-dev
- name: bundle install
run: |
gem install bundler -v '~>2.0'
bundle install --jobs 4 --retry 3
bundle exec rake bundle:update
git diff
bundle exec rake bundle:check
- name: Run lint
run: |
bundle exec rake lint