forked from standardrb/standard-ruby-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to install standard-rails if it's available
- Loading branch information
1 parent
e466e02
commit 15368d7
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
name: 'StandardRB Action' | ||
description: 'A GitHub Action that lints your Ruby code with StandardRB!' | ||
author: 'Andrew Mason <[email protected]>' | ||
|
@@ -15,9 +14,13 @@ runs: | |
with: | ||
ruby-version: ${{ inputs.ruby-version }} | ||
bundler: none | ||
- name: Install standard | ||
- name: Install standard and standard-rails | ||
shell: bash | ||
run: gem install standard:$(awk '/standard \(/ {sub(/\(/, ""); sub(/\)/, ""); print $2; exit}' Gemfile.lock) | ||
run: | | ||
gem install standard:$(awk '/standard \(/ {sub(/\(/, ""); sub(/\)/, ""); print $2; exit}' Gemfile.lock) | ||
if grep -q "standard-rails" Gemfile.lock; then | ||
gem install standard-rails:$(awk '/standard-rails \(/ {sub(/\(/, ""); sub(/\)/, ""); print $2; exit}' Gemfile.lock) | ||
fi | ||
- name: Run standard | ||
shell: bash | ||
run: standardrb --parallel -f github | ||
|