-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.08 KB
/
ci.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
44
45
46
47
48
49
50
51
52
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: kcff_match_hub_test
ports:
- 5432:5432
env:
RAILS_ENV: test
DATABASE_HOST: localhost
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_PORT: 5432
DATABASE_NAME: kcff_match_hub_test
GOOGLE_CLIENT_ID: your-dummy-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET: your-dummy-client-secret
defaults:
run:
working-directory: ./app
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./app
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
- name: Run Haml-Lint
run: bundle exec haml-lint app/**/*.html.haml
- name: Set up Database
run: bundle exec rake db:schema:load
- name: Run RSpec
run: bundle exec rspec