-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.25 KB
/
Copy pathci.yml
File metadata and controls
61 lines (54 loc) · 1.25 KB
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
53
54
55
56
57
58
59
60
61
name: CI
on:
pull_request:
branches: [main, develop]
push:
branches: [main, develop]
jobs:
test:
name: RSpec
runs-on: ubuntu-latest
services:
postgres:
image: postgres:17
env:
POSTGRES_USER: loop
POSTGRES_PASSWORD: loop_dev_password
POSTGRES_DB: loop_test
ports:
- 5433:5432
options: >-
--health-cmd "pg_isready -U loop"
--health-interval 5s
--health-timeout 5s
--health-retries 5
env:
RAILS_ENV: test
DATABASE_HOST: localhost
DATABASE_USER: loop
DATABASE_PASSWORD: loop_dev_password
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bin/rails db:prepare
- run: bundle exec rspec
lint:
name: RuboCop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec rubocop
security:
name: Brakeman
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- run: bundle exec brakeman --no-pager