Skip to content

Update README.md #243

Update README.md

Update README.md #243

Workflow file for this run

name: Main
on: [push, pull_request]
jobs:
base:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.1"]
name: Running tests with Ruby ${{ matrix.ruby }}
services:
postgres:
image: postgres:12
env:
POSTGRES_DB: triage_test
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
ports: ["5432:5432"]
env:
BUNDLE_GEMFILE: Gemfile
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Linting
run: |
bundle exec standardrb
- name: Setup database
run: |
cp config/database.ci.yml config/database.yml
RAILS_ENV=test bundle exec rake db:create db:schema:load
- name: Run tests
run: bin/rake test
- name: Ensure seed task still works
run: RAILS_ENV=test bin/rails db:seed