-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (33 loc) · 932 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
name: rspec tests
on: [pull_request]
jobs:
rspec:
name: Rspec
runs-on: ubuntu-latest
services:
postgres:
image: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports: ["5432:5432"]
env:
POSTGRES_DB: iv_cbv_payroll_test
POSTGRES_USER: cidbuser
POSTGRES_PASSWORD: postgres
steps:
- uses: actions/checkout@v4
- id: setup
uses: ./.github/actions/setup-project
with:
rails_env: test
- name: Set RAILS_MASTER_KEY from file
id: set-rails-master-key
run: echo "RAILS_MASTER_KEY=$(cat ./.config/credentials/test.key)" >> $GITHUB_ENV
- name: Run rspec
env:
RAILS_ENV: test
DATABASE_URL: ${{ steps.setup.outputs.database_url }}
run: bundle exec rspec