diff --git a/.github/ci-gemfiles/ruby-3.0 b/.github/ci-gemfiles/ruby-3.0 index 931d1256e..e15a80aba 100644 --- a/.github/ci-gemfiles/ruby-3.0 +++ b/.github/ci-gemfiles/ruby-3.0 @@ -1,12 +1,12 @@ source "https://rubygems.org" -gem 'rake' -gem 'rack' +gem 'ansi' gem 'i18n' gem 'minitest' -gem 'ansi' - gem 'oj', require: false # false is for testing with or without it +gem 'rake' +gem 'rack' +gem 'rake-manifest', require: false gem 'rubocop', '~> 1.11', require: false gem 'rubocop-minitest', require: false diff --git a/.github/workflows/pagy-ci.yml b/.github/workflows/pagy-ci.yml index b68cb7fea..416739901 100644 --- a/.github/workflows/pagy-ci.yml +++ b/.github/workflows/pagy-ci.yml @@ -17,6 +17,7 @@ jobs: env: BUNDLE_GEMFILE: .github/ci-gemfiles/ruby-3.0 CODECOV: true + RAKE_MANIFEST: true fail-fast: false env: ${{ matrix.env }} @@ -40,3 +41,7 @@ jobs: uses: codecov/codecov-action@v1.3.2 with: fail_ci_if_error: true + + - name: Check whether pagy.manifest is up-to-date in master|dev + if: ${{ env.RAKE_MANIFEST == 'true' && (endsWith(github.ref, '/master') || endsWith(github.ref, '/dev')) }} + run: bundle exec rake manifest:check diff --git a/README.md b/README.md index f0320c779..6e409e6a1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![Gem Version](https://img.shields.io/gem/v/pagy.svg?label=pagy&colorA=99004d&colorB=cc0066)](https://rubygems.org/gems/pagy) ![ruby](https://img.shields.io/badge/ruby-3.0+-ruby.svg?colorA=99004d&colorB=cc0066) -[![Build Status](https://img.shields.io/travis/ddnexus/pagy/master.svg?colorA=1f7a1f&colorB=2aa22a)](https://travis-ci.org/ddnexus/pagy/branches) +[![Build Status](https://img.shields.io/github/workflow/status/ddnexus/pagy/Pagy%20CI/master)](https://github.com/ddnexus/pagy/actions?query=branch:master) [![CodeCov](https://img.shields.io/codecov/c/github/ddnexus/pagy.svg?colorA=1f7a1f&colorB=2aa22a)](https://codecov.io/gh/ddnexus/pagy) ![Rubocop Status](https://img.shields.io/badge/rubocop-passing-rubocop.svg?colorA=1f7a1f&colorB=2aa22a) [![MIT license](https://img.shields.io/badge/license-MIT-mit.svg?colorA=1f7a1f&colorB=2aa22a)](http://opensource.org/licenses/MIT) diff --git a/Rakefile b/Rakefile index 539bbba20..a3070813c 100644 --- a/Rakefile +++ b/Rakefile @@ -2,4 +2,4 @@ Rake.add_rakelib 'tasks' -task default: %i[test rubocop coverage_summary] +task default: %i[test rubocop coverage_summary manifest:check] diff --git a/tasks/gem_management.rake b/tasks/gem_management.rake index ad6ca507e..3eead1055 100644 --- a/tasks/gem_management.rake +++ b/tasks/gem_management.rake @@ -1,7 +1,5 @@ # frozen_string_literal: true -return if ENV['CI'] - # gem build and release tasks, with added checks and patches require 'bundler/gem_tasks'