Skip to content

Commit

Permalink
Merge branch 'update-ci' into rack-3
Browse files Browse the repository at this point in the history
  • Loading branch information
tricknotes committed Feb 1, 2024
2 parents 2f1a937 + 8c058ef commit b223a06
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,23 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ["2.7", "3.0", "3.1"]
rails: ["6.0", "6.1", "7.0"]
ruby: ["3.0", "3.1", "3.2"]
rails: ["6.1", "7.0", "7.1"]
include:
- ruby: "2.7"
rails: "5.2"
- ruby: "3.2"
rails: "7.0"
- ruby: "3.2"
- ruby: "3.3"
rails: "main"

env:
RAILS_ENV: "test"
RAILS_VERSION: "${{ matrix.rails }}"

steps:
- uses: "actions/checkout@v1"
- uses: "actions/checkout@v4"

- name: "Install NodeJS 18.x"
uses: "actions/setup-node@v1"
- name: "Install NodeJS"
uses: "actions/setup-node@v4"
with:
node-version: "18.x"
node-version: "20.x"

- name: "Install Ruby ${{ matrix.ruby }}"
uses: "ruby/setup-ruby@v1"
Expand All @@ -46,7 +42,7 @@ jobs:
bundle lock
- name: "Cache Ruby dependencies"
uses: "actions/cache@v1"
uses: "actions/cache@v4"
with:
path: "vendor/bundle"
key: bundle-${{ hashFiles('Gemfile.lock') }}
Expand Down
11 changes: 4 additions & 7 deletions spec/dummy/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ class Application < Rails::Application
# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr

if Rails.version >= "5"
config.public_file_server.headers = {
"Cache-Control" => CACHE_CONTROL_FIVE_MINUTES
}
else
config.static_cache_control = CACHE_CONTROL_FIVE_MINUTES
end
config.public_file_server.enabled = true
config.public_file_server.headers = {
"cache-control" => CACHE_CONTROL_FIVE_MINUTES
}

config.secret_token = "SECRET_TOKEN_IS_MIN_30_CHARS_LONG"
config.secret_key_base = "SECRET_KEY_BASE"
Expand Down

0 comments on commit b223a06

Please sign in to comment.