Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@ on:
jobs:
test:
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: propro_test
POSTGRES_PASSWORD: propro_test
POSTGRES_DB: propro_test
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

steps:
- uses: actions/checkout@v4

Expand All @@ -19,13 +35,22 @@ jobs:
run: bin/rails db:schema:load
env:
RAILS_ENV: test
PGHOST: 127.0.0.1
PGUSER: propro_test
PGPASSWORD: propro_test

- name: Run tests
run: bin/rails test
env:
RAILS_ENV: test
PGHOST: 127.0.0.1
PGUSER: propro_test
PGPASSWORD: propro_test

- name: Run system tests
run: bin/rails test:system
env:
RAILS_ENV: test
RAILS_ENV: test
PGHOST: 127.0.0.1
PGUSER: propro_test
PGPASSWORD: propro_test
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby-3.4.7
ruby-4.0.6
6 changes: 3 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
source 'https://rubygems.org'
ruby '3.4.7'
ruby '4.0.6'

gem 'csv', require: false
# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem 'rails', '>= 8.0.2'
# The modern asset pipeline for Rails [https://github.com/rails/propshaft]
gem 'propshaft'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '>= 2.1'
# Use postgres as the database for Active Record
gem 'pg'
# Use the Puma web server [https://github.com/puma/puma]
gem 'puma', '>= 5.0'
# Use JavaScript with ESM import maps [https://github.com/rails/importmap-rails]
Expand Down
Loading
Loading