-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 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
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: makoto
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
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 postgresql-client
sudo apt install mecab libmecab-dev mecab-ipadic-utf8
- 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
- run: bundle exec rake migration:run
- name: Run lint
run: |
bundle exec rubocop
bundle exec rake erb:lint