File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Main
2+ on : [push, pull_request]
3+
4+ jobs :
5+ base :
6+ runs-on : ubuntu-latest
7+ strategy :
8+ fail-fast : false
9+ matrix :
10+ ruby : ["3.0", 3.1]
11+ name : Running tests with Ruby ${{ matrix.ruby }}
12+ services :
13+ postgres :
14+ image : postgres:12
15+ env :
16+ POSTGRES_DB : triage_test
17+ POSTGRES_PASSWORD : password
18+ POSTGRES_USER : postgres
19+ ports : ["5432:5432"]
20+ env :
21+ BUNDLE_GEMFILE : Gemfile
22+
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@v2
26+
27+ - name : Setup Ruby
28+ uses : ruby/setup-ruby@v1
29+ with :
30+ ruby-version : ${{ matrix.ruby }}
31+ bundler-cache : true
32+
33+ - name : Setup database
34+ run : |
35+ cp config/database.ci.yml config/database.yml
36+ RAILS_ENV=test bundle exec rake db:create db:schema:load
37+
38+ - name : Run tests
39+ run : bin/rake test
Original file line number Diff line number Diff line change 1+ defaults : &defaults
2+ adapter : postgresql
3+ encoding : utf8
4+ pool : 5
5+ host : localhost
6+ password : password
7+ username : postgres
8+
9+ development :
10+ << : *defaults
11+ database : triage_development
12+
13+ test :
14+ << : *defaults
15+ database : triage_test
You can’t perform that action at this time.
0 commit comments