Adding myRent web_url to app directory #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
RAILS_ENV: test | |
REDIS_URL: redis://redis:6379/1 | |
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Lint Ruby | |
run: bundle exec standardrb | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
services: | |
redis: | |
image: redis | |
ports: | |
- "6379:6379" | |
chrome: | |
image: seleniarm/standalone-chromium | |
ports: | |
- "7900:7900" | |
- "4444:4444" | |
options: --shm-size=2G | |
env: | |
SE_START_XVFB: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Run Zeitwerk Check | |
run: | | |
bundle exec rails zeitwerk:check | |
- name: Prepare database | |
run: | | |
bin/rails db:create | |
bin/rails db:schema:load | |
- name: Run non-system tests | |
run: | | |
bin/rails test |