Skip to content

Merge pull request #1018 from ElixirTeSS/lp-curator-role #1432

Merge pull request #1018 from ElixirTeSS/lp-curator-role

Merge pull request #1018 from ElixirTeSS/lp-curator-role #1432

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
DB_HOST: localhost
DB_NAME: tess
DB_USER: tess
DB_PASSWORD: password
SECRET_BASE_KEY: test_key
RAILS_ENV: test
REDIS_TEST_URL: redis://localhost:6456/0
steps:
- name: Set up database
uses: harmon758/postgresql-action@v1
with:
postgresql db: ${DB_NAME}
postgresql user: ${DB_USER}
postgresql password: ${DB_PASSWORD}
- name: Set up Redis
uses: supercharge/[email protected]
with:
redis-version: 6
redis-port: 6456
- name: Check out code
uses: actions/checkout@v4
- name: Install Ruby & gems
uses: ruby/setup-ruby@v1
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Configure and initialize database
run: |
cp test/config/test_tess.yml config/tess.yml
cp config/secrets.github.yml config/secrets.yml
cp config/ingestion.example.yml config/ingestion.yml
bundle exec rake db:test:prepare
- run: bundle exec rails test
name: Run tests