-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
128 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
puts "Hello, " + "world!" | ||
Check warning on line 1 in test/only_changed/few_relevant/files/a.rb GitHub Actions / test-skip-install-and-use-bundler
Check warning on line 1 in test/only_changed/few_relevant/files/a.rb GitHub Actions / test-skip-install-and-use-bundler
Check warning on line 1 in test/only_changed/few_relevant/files/a.rb GitHub Actions / test-skip-install-and-use-bundler
Check warning on line 1 in test/only_changed/few_relevant/files/a.rb GitHub Actions / test-skip-install-and-use-bundler
|
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
puts "Hello, " + "world!" |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
case ARGV | ||
when %w[ | ||
--list-target-files | ||
] | ||
puts Dir['**/*.rb'] | ||
when %W[ | ||
--require #{ENV['GITHUB_ACTION_PATH']}/rdjson_formatter/rdjson_formatter.rb | ||
--format RdjsonFormatter | ||
--fail-level error | ||
a.rb | ||
] | ||
puts 'Mock message for reviewdog' | ||
else | ||
abort "rubocop mock called with unexpected arguments:\n#{ARGV.join("\n")}" | ||
end |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
puts "Hello, " + "world!" |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
case ARGV | ||
when %w[ | ||
--list-target-files | ||
] | ||
puts Dir['**/*.rb'] | ||
else | ||
abort "rubocop mock called with unexpected arguments:\n#{ARGV.join("\n")}" | ||
end |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
|
||
if [ "$1" = "exec" ]; then | ||
shift | ||
eval "$@" | ||
else | ||
echo "Only 'exec' command is supported" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
arguments="$*" | ||
|
||
if [ "$arguments" != "-sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh" ]; then | ||
echo "curl mock got unexpected arguments: $arguments" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
touch test/only_changed/reviewdog-was-called | ||
|
||
read -r input | ||
|
||
if [ "$input" != "Mock message for reviewdog" ]; then | ||
echo "reviewdog mock got unexpected input: $input" | ||
exit 1 | ||
fi |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env ruby | ||
# frozen_string_literal: true | ||
|
||
case ARGV | ||
when %w[ | ||
--list-target-files | ||
] | ||
puts Dir['**/*.rb'] | ||
when %W[ | ||
--require #{ENV['GITHUB_ACTION_PATH']}/rdjson_formatter/rdjson_formatter.rb | ||
--format RdjsonFormatter | ||
--fail-level error | ||
] | ||
puts 'Mock message for reviewdog' | ||
else | ||
abort "rubocop mock called with unexpected arguments:\n#{ARGV.join("\n")}" | ||
end |