Skip to content

Commit

Permalink
Adjust GitHub Actions so linting occurs separately from test suite
Browse files Browse the repository at this point in the history
What?
=====

This adjusts the GitHub Actions setup so running `standard`
occurs separately from running the specs via Appraisal.
  • Loading branch information
joshuaclayton committed Mar 8, 2022
1 parent 6244b5d commit 8f766ef
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,17 @@ jobs:
- name: Setup project
run: bundle install
- name: Run test
run: bundle exec rake
run: bundle exec rake all_specs

standard:
name: Run standard
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1"
- name: Setup project
run: bundle install
- name: Run test
run: bundle exec rake standard
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ require "standard/rake"

Bundler::GemHelper.install_tasks(name: "factory_bot")

desc "Default: run the specs, features, and standard ."
task default: %w[spec:unit spec:acceptance features standard]
desc "Default: run all specs and standard"
task default: %w[all_specs standard]

desc "Run all specs and features"
task all_specs: %w[spec:unit spec:acceptance features]

namespace :spec do
desc "Run unit specs"
Expand Down

0 comments on commit 8f766ef

Please sign in to comment.