Skip to content

Merge pull request #41 from envato/remove-travis #12

Merge pull request #41 from envato/remove-travis

Merge pull request #41 from envato/remove-travis #12

Workflow file for this run

---
name: tests
on: [ push, pull_request ]
jobs:
test:
name: Test (Ruby ${{ matrix.ruby }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: [ '3.2', '3.1', '3.0' ]
steps:
- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: RSpec
run: bundle exec rake --trace db:migrate spec
env:
DATABASE_URL: postgres://postgres:secretdb@localhost:25432/event_sourcery_todo_app_test
RACK_ENV: test
services:
postgres:
image: postgres
env:
POSTGRES_DB: event_sourcery_todo_app_test
POSTGRES_PASSWORD: secretdb
ports:
- 25432:5432