forked from errbit/errbit
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.46 KB
/
rspec.yml
File metadata and controls
58 lines (49 loc) · 1.46 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
name: RSpec
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch: {}
schedule:
- cron: "0 21 * * 6"
permissions:
contents: read
env:
CI: "true"
SE_AVOID_STATS: "true"
jobs:
rspec:
runs-on: ubuntu-24.04
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
ruby: ["4.0.1"]
mongodb-version: ["7.0", "8.0", "8.2"]
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
with:
disable-sudo: true
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Ruby
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
with:
ruby-version: ${{ matrix.ruby }}
rubygems: "latest"
bundler: "latest"
bundler-cache: true
- name: Start MongoDB
uses: supercharge/mongodb-github-action@315db7fe45ac2880b7758f1933e6e5d59afd5e94 # 1.12.1
with:
mongodb-version: ${{ matrix.mongodb-version }}
- run: bundle exec bootsnap precompile --gemfile
- run: bundle exec bootsnap precompile app/ lib/ config/ Rakefile
- run: bundle exec rails zeitwerk:check
- run: bundle exec rails assets:precompile
- run: bundle exec rails errbit:bootstrap
- run: bundle exec rspec