diff --git a/.github/workflows/mutant.yml b/.github/workflows/mutant.yml new file mode 100644 index 0000000..6e3775e --- /dev/null +++ b/.github/workflows/mutant.yml @@ -0,0 +1,23 @@ +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + mutant: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, + # change this to (see https://github.com/ruby/setup-ruby#versioning): + uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.1" + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake mutant diff --git a/.github/workflows/specs.yml b/.github/workflows/specs.yml index 67dd099..bf1afcd 100644 --- a/.github/workflows/specs.yml +++ b/.github/workflows/specs.yml @@ -1,5 +1,3 @@ -name: specs - on: push: branches: [ "master" ] @@ -10,13 +8,11 @@ permissions: contents: read jobs: - test: - + specs: runs-on: ubuntu-latest strategy: matrix: ruby-version: ['3.1', '3.2', '3.3'] - steps: - uses: actions/checkout@v4 - name: Set up Ruby diff --git a/.github/workflows/standard.yml b/.github/workflows/standard.yml new file mode 100644 index 0000000..9f50e6f --- /dev/null +++ b/.github/workflows/standard.yml @@ -0,0 +1,23 @@ +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + standard: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, + # change this to (see https://github.com/ruby/setup-ruby#versioning): + uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.1" + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake standard diff --git a/.github/workflows/yardstick.yml b/.github/workflows/yardstick.yml new file mode 100644 index 0000000..f06d84f --- /dev/null +++ b/.github/workflows/yardstick.yml @@ -0,0 +1,23 @@ +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + yardstick: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, + # change this to (see https://github.com/ruby/setup-ruby#versioning): + uses: ruby/setup-ruby@v1 + with: + ruby-version: "3.1" + bundler-cache: true # runs 'bundle install' and caches installed gems automatically + - name: Run tests + run: bundle exec rake yardstick diff --git a/README.md b/README.md index 2b0aca9..865f986 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,15 @@ Module to define equality, equivalence and inspection methods [![Gem Version](http://img.shields.io/gem/v/equalizer.svg)][gem] [![Build Status](https://github.com/dkubb/equalizer/actions/workflows/specs.yml/badge.svg)][specs] +[![Mutant](https://github.com/dkubb/equalizer/actions/workflows/mutant.yml/badge.svg)][mutant] +[![Standard](https://github.com/dkubb/equalizer/actions/workflows/standard.yml/badge.svg)][standard] +[![Yardstick](https://github.com/dkubb/equalizer/actions/workflows/yardstick.yml/badge.svg)][yardstick] [gem]: https://rubygems.org/gems/equalizer [specs]: https://github.com/dkubb/equalizer/actions/workflows/specs.yml +[mutant]: https://github.com/dkubb/equalizer/actions/workflows/mutant.yml +[standard]: https://github.com/dkubb/equalizer/actions/workflows/standard.yml +[yardstick]: https://github.com/dkubb/equalizer/actions/workflows/yardstick.yml Examples --------