-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add a test action * Fix the test action * Fix the test action * Remove coveralls * Add simplecov * Fix tests * Remove coveralls * Fix the compatibility of Rack::Headers * Set only related environment variables * Fix header handling * Fix the redundant code
- Loading branch information
Showing
5 changed files
with
138 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
jobs: | ||
rack-test: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: ['3.3', '3.2', '3.1', '3.0', '2.7'] | ||
rack-version: ['3.0.0', '2.2.0', '2.1.0', '2.0.0'] | ||
include: | ||
- { ruby-version: '3.3', rack-version: '3.0.0' } | ||
- { ruby-version: '3.3', rack-version: '2.2.0' } | ||
- { ruby-version: '3.3', rack-version: '2.1.0' } | ||
- { ruby-version: '3.3', rack-version: '2.0.0' } | ||
- { ruby-version: '3.2', rack-version: '3.0.0' } | ||
- { ruby-version: '3.2', rack-version: '2.2.0' } | ||
- { ruby-version: '3.2', rack-version: '2.1.0' } | ||
- { ruby-version: '3.2', rack-version: '2.0.0' } | ||
- { ruby-version: '3.1', rack-version: '3.0.0' } | ||
- { ruby-version: '3.1', rack-version: '2.2.0' } | ||
- { ruby-version: '3.1', rack-version: '2.1.0' } | ||
- { ruby-version: '3.1', rack-version: '2.0.0' } | ||
- { ruby-version: '3.0', rack-version: '3.0.0' } | ||
- { ruby-version: '3.0', rack-version: '2.2.0' } | ||
- { ruby-version: '3.0', rack-version: '2.1.0' } | ||
- { ruby-version: '3.0', rack-version: '2.0.0' } | ||
- { ruby-version: '2.7', rack-version: '3.0.0' } | ||
- { ruby-version: '2.7', rack-version: '2.2.0' } | ||
- { ruby-version: '2.7', rack-version: '2.1.0' } | ||
- { ruby-version: '2.7', rack-version: '2.0.0' } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby ${{ matrix.ruby-version }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: vendor/bundle | ||
key: bundle-use-ruby-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
bundle-use-ruby-${{ matrix.ruby-version }}- | ||
- name: Install dependencies | ||
env: | ||
RACK_VERSION: ${{ matrix.rack-version }} | ||
run: bundle install | ||
- name: Run tests | ||
run: bundle exec rake spec | ||
rails-test: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: ['3.3', '3.2', '3.1', '3.0', '2.7'] | ||
rails-version: ['7.1.0', '7.0.0', '6.1.0', '6.0.0'] | ||
include: | ||
- { ruby-version: '3.3', rails-version: '7.1.0' } | ||
- { ruby-version: '3.3', rails-version: '7.0.0' } | ||
- { ruby-version: '3.3', rails-version: '6.1.0' } | ||
- { ruby-version: '3.3', rails-version: '6.0.0' } | ||
- { ruby-version: '3.2', rails-version: '7.1.0' } | ||
- { ruby-version: '3.2', rails-version: '7.0.0' } | ||
- { ruby-version: '3.2', rails-version: '6.1.0' } | ||
- { ruby-version: '3.2', rails-version: '6.0.0' } | ||
- { ruby-version: '3.1', rails-version: '7.1.0' } | ||
- { ruby-version: '3.1', rails-version: '7.0.0' } | ||
- { ruby-version: '3.1', rails-version: '6.1.0' } | ||
- { ruby-version: '3.1', rails-version: '6.0.0' } | ||
- { ruby-version: '3.0', rails-version: '7.1.0' } | ||
- { ruby-version: '3.0', rails-version: '7.0.0' } | ||
- { ruby-version: '3.0', rails-version: '6.1.0' } | ||
- { ruby-version: '3.0', rails-version: '6.0.0' } | ||
- { ruby-version: '2.7', rails-version: '7.1.0' } | ||
- { ruby-version: '2.7', rails-version: '7.0.0' } | ||
- { ruby-version: '2.7', rails-version: '6.1.0' } | ||
- { ruby-version: '2.7', rails-version: '6.0.0' } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby ${{ matrix.ruby-version }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: vendor/bundle | ||
key: bundle-use-ruby-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
bundle-use-ruby-${{ matrix.ruby-version }}- | ||
- name: Install dependencies | ||
env: | ||
RAILS_VERSION: ${{ matrix.rails-version }} | ||
run: bundle install | ||
- name: Run tests | ||
run: bundle exec rake spec | ||
i18n-test: | ||
runs-on: ubuntu-22.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby-version: ['3.3', '3.2', '3.1', '3.0', '2.7'] | ||
i18n-version: ['1.14.0'] | ||
include: | ||
- { ruby-version: '3.3', i18n-version: '1.14.0' } | ||
- { ruby-version: '3.2', i18n-version: '1.14.0' } | ||
- { ruby-version: '3.1', i18n-version: '1.14.0' } | ||
- { ruby-version: '3.0', i18n-version: '1.14.0' } | ||
- { ruby-version: '2.7', i18n-version: '1.14.0' } | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Ruby ${{ matrix.ruby-version }} | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby-version }} | ||
- uses: actions/cache@v3 | ||
with: | ||
path: vendor/bundle | ||
key: bundle-use-ruby-${{ matrix.ruby-version }}-${{ hashFiles('**/Gemfile.lock') }} | ||
restore-keys: | | ||
bundle-use-ruby-${{ matrix.ruby-version }}- | ||
- name: Install dependencies | ||
env: | ||
I18N_VERSION: ${{ matrix.i18n-version }} | ||
run: bundle install | ||
- name: Run tests | ||
run: bundle exec rake spec | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters