Skip to content

Commit

Permalink
Split out rspec and standardrb GitHub actions
Browse files Browse the repository at this point in the history
By keeping these separate, we can more easily tell at-a-glance what is causing a GitHub action failure.

This also allows the `spec` and `standard` rake tasks to run in parallel as separate actions. Previously, the combined action simply ran `rake` which would run specs and then only ran standard when specs passed.
  • Loading branch information
darronschall committed May 24, 2024
1 parent 6a32a0d commit d2e36bb
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml → .github/workflows/rspec.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ruby
name: rspec

on:
push:
Expand All @@ -24,5 +24,5 @@ jobs:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
cache-version: 1
- name: Run the default task
run: bundle exec rake
- name: Run RSpec
run: bundle exec rake spec
23 changes: 23 additions & 0 deletions .github/workflows/standardrb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: standardrb

on:
push:
branches:
- main

pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.1
bundler-cache: true
cache-version: 1
- name: Run Standard Ruby
run: bundle exec rake standard

0 comments on commit d2e36bb

Please sign in to comment.