Skip to content

Commit

Permalink
Add a GitHub Actions workflow to run the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Dec 5, 2023
1 parent 5059339 commit ef93234
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
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 rspec
env:
DATABASE_URL: postgres://postgres:secretdb@localhost:25432/event_sourcery_todo_app_test
services:
postgres:
image: postgres
env:
POSTGRES_DB: event_sourcery_todo_app_test
POSTGRES_PASSWORD: secretdb
ports:
- 25432:5432

0 comments on commit ef93234

Please sign in to comment.