Skip to content

Commit 8f38ba1

Browse files
committed
Modify CI actions to check for FSLs
On newest Ruby, run with frozen string literals in "hard" mode
1 parent 4af37a2 commit 8f38ba1

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/ci.yml

+19-7
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,35 @@ env:
77
BUNDLE_PATH: vendor/bundle
88

99
jobs:
10-
test:
11-
name: Tests and Lint
10+
test_baseline_ruby:
11+
name: Tests and Lint (Ruby 2.6)
1212
runs-on: ubuntu-22.04
13-
strategy:
14-
matrix:
15-
ruby:
16-
- '2.6'
17-
- '3.4'
1813
steps:
1914
- name: Checkout
2015
uses: actions/checkout@v4
2116
- name: Setup Ruby
2217
uses: ruby/setup-ruby@v1
2318
with:
19+
ruby-version: '2.6'
2420
ruby-version: ${{ matrix.ruby }}
2521
bundler-cache: true
2622
- name: "Tests"
2723
run: bundle exec rspec --backtrace --fail-fast
2824
- name: "Lint"
2925
run: bundle exec rake standard
26+
27+
test_newest_ruby:
28+
name: Tests (Ruby 3.4)
29+
runs-on: ubuntu-22.04
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
- name: Setup Ruby
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: '3.4.1'
37+
bundler-cache: true
38+
- name: "Tests" # Make the test suite hard-crash on frozen string literal violations
39+
env:
40+
RUBYOPT: "--enable=frozen-string-literal --debug=frozen-string-literal"
41+
run: "bundle exec rspec --backtrace --fail-fast"

0 commit comments

Comments
 (0)