Skip to content

Commit

Permalink
Add problem matchers for RuboCop and minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Apr 9, 2020
1 parent 25056db commit 1d76fb4
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/eslint-stylish.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"line": 1,
"column": 2,
"severity": 3,
"message": 4,
"code": 5,
"message": 4,
"loop": true
}
]
Expand Down
19 changes: 19 additions & 0 deletions .github/minitest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"problemMatcher": [
{
"owner": "minitest",
"pattern": [
{
"regexp": "^.*?\\[(.*?):(\\d+)\\]:$",
"file": 1,
"line": 2
},
{
"regexp": "^\\s*((?:Expected|Actual).*)$",
"message": 1,
"loop": true
}
]
}
]
}
17 changes: 17 additions & 0 deletions .github/rubocop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "rubocop",
"pattern": [
{
"regexp": "^(.*?\\.rb):(\\d+):(\\d+):.*?:\\s*(.*?):\\s*(.*)$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
]
}
]
}
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: CocoaPods
run: |
bundle install
echo "::add-matcher::.github/rubocop.json"
bundle exec rubocop
echo "::remove-matcher owner=rubocop::"
echo "::add-matcher::.github/minitest.json"
bundle exec ruby -Ilib:test test/test_test_app.rb
echo "::remove-matcher owner=minitest::"
- name: JavaScript
run: |
yarn
echo "::add-matcher::.github/eslint-stylish.json"
yarn lint:js
echo "::remove-matcher owner=eslint-stylish::"
- name: Ruby
run: |
bundle install
bundle exec rubocop
bundle exec ruby -Ilib:test test/test_test_app.rb
iOS:
runs-on: macos-latest
steps:
Expand Down

0 comments on commit 1d76fb4

Please sign in to comment.