Skip to content

341624 add status attribute to room #823

341624 add status attribute to room

341624 add status attribute to room #823

Workflow file for this run

name: Tests
on:
push:
branches:
- "master"
pull_request:
jobs:
test:
name: ruby-${{ matrix.ruby-version }}
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.3.5']
fail-fast: false
env:
RAILS_MASTER_KEY: "acf7c0d9c0f69afd05048c8a58b2e9ee"
FERRUM_PROCESS_TIMEOUT: 25
FERRUM_DEFAULT_TIMEOUT: 15
services:
postgres:
image: postgres:13
env:
POSTGRES_DB: dcim_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout main app
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
rubygems: "latest"
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Setup Chrome
uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
- name: Set up Database
env:
RAILS_ENV: test
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
run: |
cp test/support/database-postgres.yml config/database.yml
bundle exec rails db:setup
- name: Run tests
env:
RAILS_ENV: test
run: bundle exec rails test
- name: Run RSpec tests
env:
RAILS_ENV: test
run: bin/rspec
- name: Rubocop
run: bin/rubocop