clean up services - process captions services moved into job #194
Workflow file for this run
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] | |
jobs: | |
install-cache: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout Commit | |
uses: actions/checkout@v3 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
test: | |
runs-on: ubuntu-latest | |
needs: install-cache | |
timeout-minutes: 10 | |
services: | |
postgres: | |
image: postgres | |
ports: ["5432:5432"] | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: password | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
redis: | |
image: redis | |
ports: | |
- "6379:6379" | |
steps: | |
- name: Checkout Commit | |
uses: actions/checkout@v3 | |
- name: Install Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Install system dependencies | |
run: | | |
sudo apt-get -y update | |
- name: Run tests | |
env: | |
RAILS_ENV: test | |
DATABASE_URL: postgres://postgres:password@localhost:5432/app_test | |
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} | |
run: | | |
bin/rails tailwindcss:build | |
bin/rails db:create | |
bin/rails db:schema:load | |
bin/rails test --fail-fast | |
bin/rails test:system | |
- name: Smoke test database seeds | |
env: | |
RAILS_ENV: test | |
DATABASE_URL: postgres://postgres:password@localhost:5432/app_test | |
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} | |
run: bundle exec rails db:reset |