All Projects → Drieam → rspec-github

Drieam / rspec-github

Licence: MIT license
Formatter for RSpec to show errors in GitHub action annotations

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to rspec-github

googlejavaformat-action
GitHub Action that formats Java files following Google Style guidelines
Stars: ✭ 66 (+100%)
Mutual labels:  formatter, github-actions
translation-action
GitHub action that translates any text to any language supported by chosen provider.
Stars: ✭ 25 (-24.24%)
Mutual labels:  github-actions
github-stats-box
📌 Update a gist to contain your GitHub stats
Stars: ✭ 72 (+118.18%)
Mutual labels:  github-actions
package-version-check-action
GitHub Actions to check package version before publish
Stars: ✭ 30 (-9.09%)
Mutual labels:  github-actions
Github-Android-Action
Android Github Action that builds Android project, runs unit tests and generates debug APK, builds for Github Actions hackathon
Stars: ✭ 29 (-12.12%)
Mutual labels:  github-actions
100 Days Of Go
100 days of Go learning
Stars: ✭ 24 (-27.27%)
Mutual labels:  github-actions
html5validator-action
GitHub Action that checks HTML5 syntax.
Stars: ✭ 27 (-18.18%)
Mutual labels:  github-actions
django-github-digitalocean
Continuously Deploying Django to DigitalOcean with Docker and GitHub Actions
Stars: ✭ 45 (+36.36%)
Mutual labels:  github-actions
actions
🧰 Collection of github actions for automation
Stars: ✭ 28 (-15.15%)
Mutual labels:  github-actions
json-formatter
An extensible JSON Viewer, Editor, Formatter, Validator based on Monaco Editor
Stars: ✭ 41 (+24.24%)
Mutual labels:  formatter
dockerfile-language-service
Dockerfile language service for providing an API to create feature-rich Dockerfile editors in JavaScript.
Stars: ✭ 15 (-54.55%)
Mutual labels:  formatter
Bois
Salar.Bois is a compact, fast and powerful binary serializer for .NET Framework. With Bois you can serialize your existing objects with almost no change.
Stars: ✭ 53 (+60.61%)
Mutual labels:  formatter
deploy-firebase
A GitHub Action to deploy to Firebase Hosting
Stars: ✭ 63 (+90.91%)
Mutual labels:  github-actions
releasezri
Meaningful and minimalist release notes for developers
Stars: ✭ 25 (-24.24%)
Mutual labels:  github-actions
action-ansible-playbook
⚙️ A GitHub Action for running Ansible playbooks
Stars: ✭ 133 (+303.03%)
Mutual labels:  github-actions
labeler
GitHub Action to assign labels to PRs based on configurable conditions
Stars: ✭ 47 (+42.42%)
Mutual labels:  github-actions
actions
GitHub Actions for R-hub
Stars: ✭ 18 (-45.45%)
Mutual labels:  github-actions
bundle outdated formatter
Formatter for `bundle outdated` command
Stars: ✭ 16 (-51.52%)
Mutual labels:  formatter
vidyabhandary
Self updating profile readme for github
Stars: ✭ 36 (+9.09%)
Mutual labels:  github-actions
github-actions-all-in-one-project
Automatically add an issue or pull request to specific GitHub Project when you create them.
Stars: ✭ 27 (-18.18%)
Mutual labels:  github-actions

Rspec::Github

CI Gem Version

RSpec formatter compatible with GitHub Action's annotations. It supports multiline errors and will set pending specs as warnings:

screenshot.png

Installation

Add the gem to your application's Gemfile test group:

group :test do
  gem 'rspec-github', require: false
end

And then of course install the gem by executing:

bundle install

Usage

You can specify the formatter with a command line argument:

rspec --format RSpec::Github::Formatter

And to always run it with this formatter, you can set it in the .rspec file:

# other configuration
--format RSpec::Github::Formatter

Note that you can select multiple formatters so that you can also see other output:

rspec --format RSpec::Github::Formatter --format progress
rspec --format RSpec::Github::Formatter --format documentation

If you want to disable annotations for pending specs you can do that by adding --tag ~skip to your command:

rspec --format RSpec::Github::Formatter --tag ~skip

Development

After checking out the repo, run bundle install to install dependencies. Then, run rake spec to run the tests. Publishing a new version is handled by the publish workflow. This workflow publishes a GitHub release to rubygems with the version defined in the release.

Usefull references

License

The gem is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].