Skip to content

Commit

Permalink
Add workflows for mutant, standard, and yardstick
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed May 30, 2024
1 parent 1ed05a2 commit 2ec715a
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/mutant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: mutant

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
run:
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
4 changes: 1 addition & 3 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ permissions:
contents: read

jobs:
test:

run:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: standard

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
run:
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
25 changes: 25 additions & 0 deletions .github/workflows/yardstick.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: yardstick

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
run:
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 verify_measurements
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------
Expand Down

0 comments on commit 2ec715a

Please sign in to comment.