Skip to content

Commit

Permalink
Merge pull request #113 from Earlopain/ci-rubyopt
Browse files Browse the repository at this point in the history
Add a job for frozen-string-literal
  • Loading branch information
casperisfine committed May 7, 2024
2 parents 1430579 + 3894138 commit 37a0f9d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -4,13 +4,17 @@ on: [push, pull_request]

jobs:
ruby:
name: Ruby ${{ matrix.ruby }}
name: Ruby ${{ matrix.ruby }} ${{ matrix.rubyopt }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
ruby: ["ruby-head", "3.3", "3.2", "3.1", "3.0", "2.7", "2.6"]
rubyopt: [""]
include:
- ruby: "3.3"
rubyopt: "--enable-frozen-string-literal"
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand All @@ -26,4 +30,4 @@ jobs:
run: sudo apt-get install -y ragel socat netcat

- name: Tests ${{ matrix.rubyopt }}
run: bundle exec rake
run: RUBYOPT="${{ matrix.rubyopt }}" bundle exec rake

0 comments on commit 37a0f9d

Please sign in to comment.