Compare commits
1 Commits
f88d5b6b91
...
ed7ff876fd
Author | SHA1 | Date | |
---|---|---|---|
![]() |
ed7ff876fd |
34
.github/workflows/tests.yml
vendored
34
.github/workflows/tests.yml
vendored
@ -1,34 +0,0 @@
|
|||||||
name: Run unit tests
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
jobs:
|
|
||||||
unit_tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
services:
|
|
||||||
postgres:
|
|
||||||
image: postgres
|
|
||||||
env:
|
|
||||||
POSTGRES_USER: postgres
|
|
||||||
POSTGRES_PASSWORD: postgres
|
|
||||||
options: >-
|
|
||||||
--health-cmd pg_isready
|
|
||||||
--health-interval 10s
|
|
||||||
--health-timeout 5s
|
|
||||||
--health-retries 5
|
|
||||||
ports:
|
|
||||||
- 5432
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
- uses: ruby/setup-ruby@v1
|
|
||||||
- run: bundle install
|
|
||||||
- run: |
|
|
||||||
bundle exec rake db:create db:schema:load
|
|
||||||
bundle exec rspec
|
|
||||||
env:
|
|
||||||
RAILS_ENV: test
|
|
||||||
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
|
|
Loading…
x
Reference in New Issue
Block a user