-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (44 loc) · 1.36 KB
/
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
46
47
48
49
50
name: RSpec
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 21 * * 6"
env:
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_USER: "runner"
POSTGRES_DB: "evemonk_test"
PGHOST: "localhost"
SECRET_KEY_BASE: "919650e468e29e897a53ef239b6e0228f8b71ec6ed353b691d140945e98d0c6a63731811afc27b61b9094523740962499afabc6d7ad0c872f1d5b62472083a08"
CI: "yes"
permissions:
contents: read
jobs:
rspec:
runs-on: ubuntu-latest
services:
postgres:
image: "postgres:16.1"
env:
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_USER: "runner"
POSTGRES_DB: "evemonk_test"
ports:
- "5432:5432"
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Ruby
uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # v1.162.0
with:
bundler-cache: true
- run: bundle exec bootsnap precompile --gemfile app/ lib/ config/
- run: bin/rails zeitwerk:check
- run: bin/rails db:create
- run: bin/rails db:migrate
- run: bin/rspec --force-color --profile --format documentation