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 c9a7c9a
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 5 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/mutant.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 1 addition & 5 deletions .github/workflows/specs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
name: specs

on:
push:
branches: [ "master" ]
Expand All @@ -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
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/standard.yml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions .github/workflows/yardstick.yml
Original file line number Diff line number Diff line change
@@ -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
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 c9a7c9a

Please sign in to comment.