Skip to content

move custom commontator classes to lib/classes directory #2248

move custom commontator classes to lib/classes directory

move custom commontator classes to lib/classes directory #2248

Workflow file for this run

# This workflow uses actions that are not certified by GitHub. They are
# provided by a third-party and are governed by separate terms of service,
# privacy policy, and support documentation.
#
# This workflow will install a prebuilt Ruby version, install dependencies, and
# run tests and linters.
name: "CI"
on:
push:
branches:
[
"master",
"rails-7",
"ci-migration"
]
pull_request:
branches: ["master", "rails-7"]
jobs:
build:
name: rspec
runs-on: ubuntu-latest
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
REDIS_URL: redis://localhost:6379/0
HOSTNAME: "http://localhost:3200"
GOOGLE_TEST_API_KEY: ${{ secrets.GOOGLE_TEST_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_TEST_API_KEY }}
services:
postgres:
image: postgres:13-alpine
ports: ["5432:5432"]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_DB: rails_test
POSTGRES_USER: rails
POSTGRES_PASSWORD: password
redis:
image: redis
ports: ["6379:6379"]
options: --entrypoint redis-server
env:
REDIS_HOST: redis_test
REDIS_PORT: 6379
REDIS_DB_ID: 0
selenium:
image: selenium/standalone-chrome:latest
ports: ["4444:4444"]
steps:
- uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install PostgreSQL
run: sudo apt-get -yqq install libpq-dev
- name: Install ImageMagick
run: sudo apt-get install imagemagick
- name: Precompile assets
run: RAILS_ENV=test bundle exec rails assets:precompile
- name: Run bundle install
run: |
gem install bundler
bundle install --jobs 4 --retry 3
- name: Setup Database
run: bin/rails db:drop db:create db:schema:load
- name: Build and test with rspec
run: bundle exec rspec