File tree Expand file tree Collapse file tree 2 files changed +45
-48
lines changed Expand file tree Collapse file tree 2 files changed +45
-48
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ services :
14+ postgres :
15+ image : postgres:14.13
16+ env :
17+ POSTGRES_DB : rails_contributors_test
18+ POSTGRES_PASSWORD : postgres
19+ ports :
20+ - 5432:5432
21+ options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
22+
23+ env :
24+ BUNDLE_PATH : vendor/bundle
25+ DATABASE_URL : postgres://postgres:postgres@localhost:5432/rails_contributors_test
26+
27+ steps :
28+ - uses : actions/checkout@v3
29+
30+ - name : Install system dependencies
31+ run : |
32+ sudo apt-get update
33+ sudo apt-get install -y git cmake pkg-config curl libpq-dev tzdata
34+
35+ - name : Clone rails.git
36+ run : git clone --mirror https://github.com/rails/rails.git
37+
38+ - name : Set up Ruby
39+ uses : ruby/setup-ruby@v1
40+ with :
41+ ruby-version : 3.3.4
42+ bundler-cache : true
43+
44+ - name : Run tests
45+ run : bin/rails test
You can’t perform that action at this time.
0 commit comments