Skip to content

Commit

Permalink
Merge pull request #1 from Darhazer/linting-action
Browse files Browse the repository at this point in the history
Add linting action
  • Loading branch information
Darhazer authored Mar 22, 2024
2 parents e7471f4 + 3d9f103 commit cdb8da2
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 25 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint
on:
- pull_request
jobs:
lint:
name: awesome-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install awesome-lint
run: npm install -g awesome-lint
- name: Run awesome-lint
run: npx awesome-lint ./README.md

link-check:
runs-on: ubuntu-latest
# check out the latest version of the code
steps:
- uses: actions/checkout@v4
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: 'yes'
50 changes: 25 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A curated list of awesome RSpec-related resources
## RSpec
- [RSpec official web site](https://rspec.info)

## Style guides and linters:
## Style guides and linters
- [RSpec Style Guide](https://rspec.rubystyle.guide)
- [rubocop-rspec](https://github.com/rubocop/rubocop-rspec)
- [rubocop-factory_bot](https://github.com/rubocop/rubocop-factory_bot)
Expand All @@ -21,28 +21,28 @@ A curated list of awesome RSpec-related resources
- [Effective testing with RSpec 3](https://pragprog.com/titles/rspec3/effective-testing-with-rspec-3/)
- [Everyday Rails Testing with RSpec](https://leanpub.com/everydayrailsrspec)

## Matchers:
- [action_mailer_matchers](https://github.com/contently/action_mailer_matchers) RSpec matchers to test Rails' common ActionMailer functionality.
- [active_record_block_matchers](https://github.com/nwallace/active_record_block_matchers) Custom RSpec matchers for ActiveRecord record creation.
- [db-query-matchers](https://github.com/sds/db-query-matchers) RSpec matchers for database queries made by ActiveRecord.
- [mongoid-rspec](https://github.com/mongoid/mongoid-rspec) RSpec matchers for Mongoid.
- [n_plus_one_control](https://github.com/palkan/n_plus_one_control) Matchers to ensure code doesn't produce N+1 queries.
- [pundit-matchers](https://github.com/pundit-community/pundit-matchers) A set of RSpec matchers for testing Pundit authorisation policies.
- [resque_spec](https://github.com/leshill/resque_spec) A test double of Resque for RSpec.
- [rspec-graphql_matchers](https://github.com/khamusa/rspec-graphql_matchers) GraphQL matchers.
- [rspec-benchmark](https://github.com/piotrmurach/rspec-benchmark) Performance testing matchers for RSpec.
- [rspec-sidekiq](https://github.com/wspurgin/rspec-sidekiq) Simple testing of Sidekiq jobs via a collection of matchers and helpers.
- [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers) One-liners to test common Rails functionality.
## Matchers
- [action_mailer_matchers](https://github.com/contently/action_mailer_matchers) - RSpec matchers to test Rails' common ActionMailer functionality.
- [active_record_block_matchers](https://github.com/nwallace/active_record_block_matchers) - Custom RSpec matchers for ActiveRecord record creation.
- [db-query-matchers](https://github.com/sds/db-query-matchers) - RSpec matchers for database queries made by ActiveRecord.
- [mongoid-rspec](https://github.com/mongoid/mongoid-rspec) - RSpec matchers for Mongoid.
- [n_plus_one_control](https://github.com/palkan/n_plus_one_control) - Matchers to ensure code doesn't produce N+1 queries.
- [pundit-matchers](https://github.com/pundit-community/pundit-matchers) - A set of RSpec matchers for testing Pundit authorisation policies.
- [resque_spec](https://github.com/leshill/resque_spec) - A test double of Resque for RSpec.
- [rspec-graphql_matchers](https://github.com/khamusa/rspec-graphql_matchers) - GraphQL matchers.
- [rspec-benchmark](https://github.com/piotrmurach/rspec-benchmark) - Performance testing matchers for RSpec.
- [rspec-sidekiq](https://github.com/wspurgin/rspec-sidekiq) - Simple testing of Sidekiq jobs via a collection of matchers and helpers.
- [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers) - One-liners to test common Rails functionality.

## Tools:
- [active_mocker](https://github.com/zeisler/active_mocker) Creates stub classes from any ActiveRecord model.
- [database_rewinder](https://github.com/amatsuda/database_rewinder) Minimalist and ultra-fast database cleaner.
- [factory_bot](https://github.com/thoughtbot/factory_bot) A library for building database records.
- [factory_trace](https://github.com/djezzzl/factory_trace) Simple tool to maintain factories and traits from FactoryBot.
- [mutant](https://github.com/mbj/mutant) Mutation testing.
- [rspectre](https://github.com/dgollahon/rspectre) Tool to remove unused parts of the specs.
- [rspec-stubbed_env](https://github.com/pboling/rspec-stubbed_env/) Simple helper method to stub ENV values within RSpec tests.
- [spy](https://github.com/ryanong/spy) A simple opinionated mocking framework.
- [super-diff](https://github.com/mcmire/super_diff) A more helpful way to view differences between complex data structures in RSpec.
- [test-prof](https://github.com/test-prof/test-prof) Tools to analyze test suite performance +helpers to write faster tests.
- [vcr](https://github.com/vcr/vcr) Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
## Tools
- [active_mocker](https://github.com/zeisler/active_mocker) - Creates stub classes from any ActiveRecord model.
- [database_rewinder](https://github.com/amatsuda/database_rewinder) - Minimalist and ultra-fast database cleaner.
- [factory_bot](https://github.com/thoughtbot/factory_bot) - A library for building database records.
- [factory_trace](https://github.com/djezzzl/factory_trace) - Simple tool to maintain factories and traits from FactoryBot.
- [mutant](https://github.com/mbj/mutant) - Mutation testing.
- [rspectre](https://github.com/dgollahon/rspectre) - Tool to remove unused parts of the specs.
- [rspec-stubbed_env](https://github.com/pboling/rspec-stubbed_env/) - Simple helper method to stub ENV values within RSpec tests.
- [spy](https://github.com/ryanong/spy) - A simple opinionated mocking framework.
- [super-diff](https://github.com/mcmire/super_diff) - A more helpful way to view differences between complex data structures in RSpec.
- [test-prof](https://github.com/test-prof/test-prof) - Tools to analyze test suite performance +helpers to write faster tests.
- [vcr](https://github.com/vcr/vcr) - Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.

0 comments on commit cdb8da2

Please sign in to comment.