Skip to content

Commit

Permalink
Setup minitest CI with GitHub actions
Browse files Browse the repository at this point in the history
Co-authored-by: Gitta van der Pol <[email protected]>
  • Loading branch information
CalvinWalzel and GittavanderPol committed Feb 11, 2024
1 parent 6692c20 commit 6f861ee
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/minitest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run minitest
on:
pull_request:
branches: [version-2]
jobs:
run-minitest:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
ports: ["5432:5432"]
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Preparing database
run: bin/rails db:prepare
- name: Run tests
run: bin/rails test

0 comments on commit 6f861ee

Please sign in to comment.