Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,38 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ["2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
include:
- ruby-version: "2.5"
bundler-version: "2.3.27"
- ruby-version: "2.6"
bundler-version: "2.4.0"
- ruby-version: "2.7"
bundler-version: "2.4.0"
- ruby-version: "3.0"
- ruby-version: "3.1"
- ruby-version: "3.2"
- ruby-version: "3.3"
- ruby-version: "3.4"

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
bundler-cache: true
- name: Uninstall existing Bundler
run: |
gem uninstall bundler -a -x || true
# Disable bundler-cache when a custom bundler version is required,
# as setup-ruby's cache is tied to the bundler it installs.
bundler-cache: ${{ !matrix.bundler-version }}
- name: Install Bundler
run: |
if [[ "${{ matrix.ruby-version }}" == "2.5" ]]; then
gem install bundler -v "~> 2.3.27"
elif [[ "${{ matrix.ruby-version }}" == "2.6" || "${{ matrix.ruby-version }}" == "2.7" ]]; then
gem install bundler -v "~> 2.4.0"
fi
if: matrix.bundler-version
run: gem install bundler -v "~> ${{ matrix.bundler-version }}"
- name: Install gems
if: matrix.bundler-version
run: bundle install
- name: Build and run tests
env:
COVERAGE: true
# TERM is required for colored/formatted test output in CI
TERM: xterm
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
bundle exec rake test
run: bundle exec rake test
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# main ([unreleased](https://github.com/fastruby/rails_stats/compare/v1.0.2...main))

* [CHORE: Improve the GH Test Workflow](https://github.com/fastruby/rails_stats/pull/35)
* [BUGFIX: Fix JSON output missing Code and Tests total count](https://github.com/fastruby/rails_stats/pull/40)
* Update README examples
* [FEATURE: Output number of tables created from schema.rb or structure.sql, add polymorphic models count](https://github.com/fastruby/rails_stats/pull/37)
Expand All @@ -25,4 +26,4 @@
# v1.0.1 / 2018-10-8

* [FEATURE: add more aggregate stats](https://github.com/fastruby/rails_stats/pull/5)
* [FEATURE: More detailed introspection of app](https://github.com/fastruby/rails_stats/pull/1)
* [FEATURE: More detailed introspection of app](https://github.com/fastruby/rails_stats/pull/1)
Loading