-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (39 loc) · 930 Bytes
/
rspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: rspec
on:
push:
branches:
- master
pull_request:
branches:
- '**'
env:
POSTGRES_USER: sequent
POSTGRES_PASSWORD: sequent
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:12
env:
POSTGRES_USER: sequent
POSTGRES_PASSWORD: sequent
POSTGRES_DB: blog_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
working-directory: ./building-a-web-application
bundler-cache: true
- name: Run building-a-web-application tests
working-directory: ./building-a-web-application
run: bundle exec rspec