-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (40 loc) · 1.15 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
name: RSpec
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: "0 21 * * 6"
permissions:
contents: read
jobs:
rspec:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.2", "3.3", "head"]
activesupport: ["7.1", "7.2", "8.0", "main"]
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/activesupport_${{ matrix.activesupport }}.gemfile
name: Ruby ${{ matrix.ruby }} and ActiveSupport ${{ matrix.activesupport }}
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: rm Gemfile.lock
- run: rm .ruby-version
- name: Set up Ruby
uses: ruby/setup-ruby@a2bbe5b1b236842c1cb7dd11e8e3b51e0a616acc # v1.202.0
with:
ruby-version: ${{ matrix.ruby }}
rubygems: latest
bundler: latest
bundler-cache: true
- run: bundle exec rspec
- run: bundle exec standardrb