Skip to content

Commit

Permalink
Merge pull request #37 from collectiveidea/split-spec-and-standard-ac…
Browse files Browse the repository at this point in the history
…tions

GitHub Action improvements
  • Loading branch information
darronschall authored May 24, 2024
2 parents 6a32a0d + 6dedff2 commit aae22e5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/buildlight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ name: Buildlight

on:
workflow_run:
workflows: [Ruby]
branches: [main]
workflows:
- rspec
- standardrb
branches:
- main

jobs:
buildlight:
Expand Down
9 changes: 6 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 @@ -14,6 +14,9 @@ jobs:
strategy:
matrix:
ruby:
- '3.0'
- '3.1'
- '3.2'
- '3.3.1'

steps:
Expand All @@ -24,5 +27,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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [Unreleased]

- Update GitHub action to run specs on all supported Ruby versions - [#37](https://github.com/collectiveidea/protoc-gen-twirp_ruby/pull/37)

## [1.1.1] - 2024-05-22

- Remove unnecessary `racc` runtime dependency - [#33](https://github.com/collectiveidea/protoc-gen-twirp_ruby/pull/33)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Gem Version](https://img.shields.io/gem/v/protoc-gen-twirp_ruby.svg)](https://rubygems.org/gems/protoc-gen-twirp_ruby)
[![Build](https://github.com/collectiveidea/protoc-gen-twirp_ruby/actions/workflows/main.yml/badge.svg)](https://github.com/collectiveidea/protoc-gen-twirp_ruby/actions/workflows/main.yml)
[![Specs](https://github.com/collectiveidea/protoc-gen-twirp_ruby/actions/workflows/rspec.yml/badge.svg)](https://github.com/collectiveidea/protoc-gen-twirp_ruby/actions/workflows/rspec.yml)
[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)

# protoc-gen-twirp_ruby - A `protoc` plugin for Twirp-Ruby.
Expand Down

0 comments on commit aae22e5

Please sign in to comment.