Skip to content

Commit

Permalink
Merge branch 'main' into kig/rails-6-ruby-3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster authored Mar 11, 2024
2 parents edb6db1 + 70b2839 commit 7242055
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/rubyonrails.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# This workflow will install a prebuilt Ruby version, install dependencies, and
# run tests and linters.
name: "TicketBooth CI: Ruby on Rails"
name: "Ruby on Rails CI"
on:
push:
branches: [ "main" ]
Expand All @@ -14,13 +14,14 @@ jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
image: postgres:15-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,27 +43,27 @@ 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
steps:
- 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: RuboCop
- name: Lint Ruby files
run: bin/rubocop --parallel

0 comments on commit 7242055

Please sign in to comment.