This repository was archived by the owner on Dec 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.63 KB
/
rspec.yml
File metadata and controls
59 lines (52 loc) · 1.63 KB
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
51
52
53
54
55
56
57
58
59
name: RSpec
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}
schedule:
- cron: "0 21 * * 6"
env:
POSTGRES_HOST_AUTH_METHOD: "trust"
POSTGRES_USER: "runner"
POSTGRES_DB: "evemonk_test"
PGHOST: "localhost"
SECRET_KEY_BASE: "9c3c615176fb0617ca811c4010049b410dfb4163cf30157ed1cd20e724f5a845264d0bded3ebba8588275bbc52476905dc3fcb05985031920cc2e89017fc8a7b"
CI: "yes"
BOOTSNAP_LOG: "true"
permissions:
contents: read
jobs:
rspec:
runs-on: ubuntu-24.04
services:
postgres:
image: "postgres:18.0"
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:
- name: Harden Runner
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
with:
egress-policy: audit
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Set up Ruby
uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
with:
rubygems: latest
bundler: latest
bundler-cache: true
- run: bundle exec bootsnap precompile --gemfile app/ lib/ config/ Rakefile
- run: bin/rails zeitwerk:check
- run: bin/rails db:create
- run: bin/rails db:migrate
- run: bin/rspec --force-color --profile --format documentation