Skip to content

Commit

Permalink
Merge branch 'main' into kig/rails-6
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster authored Mar 11, 2024
2 parents 986efdc + 38d4774 commit 079ac2d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ jobs:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
image: postgres:16-alpine
ports:
- "5432:5432"
env:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: ""
POSTGRES_DB: tickets_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: "trust"

redis:
Expand All @@ -42,16 +44,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: '3.2.3'
bundler-cache: true

- name: Set up database schema
run: bin/rails db:schema:load

- name: Run tests
run: bundle exec rspec
run: bundle exec rspec --format documentation -p 2

lint:
runs-on: ubuntu-latest
Expand All @@ -60,6 +62,8 @@ jobs:
uses: actions/checkout@v4

- uses: ruby/setup-ruby@v1
- name: Install Ruby and gems
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: '3.2.3'
bundler-cache: true
Expand Down

0 comments on commit 079ac2d

Please sign in to comment.