Skip to content

Commit

Permalink
Enforce frozen string literals in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Dec 13, 2024
1 parent 5acb305 commit 44be9ba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- name: Run tests
env:
DATABASE_URL: "sqlite3:pay_test"
RUBYOPT: "--enable-frozen-string-literal"
STRIPE_PRIVATE_KEY: ${{ secrets.STRIPE_PRIVATE_KEY }}
run: |
bin/rails db:test:prepare
Expand Down Expand Up @@ -98,8 +99,9 @@ jobs:
rubygems: latest
- name: Run tests
env:
STRIPE_PRIVATE_KEY: ${{ secrets.STRIPE_PRIVATE_KEY }}
DATABASE_URL: postgres://postgres:password@localhost:5432/test
RUBYOPT: "--enable-frozen-string-literal"
STRIPE_PRIVATE_KEY: ${{ secrets.STRIPE_PRIVATE_KEY }}
run: |
bin/rails db:test:prepare
bin/rails test
Expand Down Expand Up @@ -140,8 +142,9 @@ jobs:
rubygems: latest
- name: Run tests
env:
STRIPE_PRIVATE_KEY: ${{ secrets.STRIPE_PRIVATE_KEY }}
DATABASE_URL: mysql2://root:[email protected]:3306/test
RUBYOPT: "--enable-frozen-string-literal"
STRIPE_PRIVATE_KEY: ${{ secrets.STRIPE_PRIVATE_KEY }}
run: |
bin/rails db:test:prepare
bin/rails test

0 comments on commit 44be9ba

Please sign in to comment.