summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-04-14 18:02:22 -0700
committerTim Smith <tsmith84@gmail.com>2021-04-14 18:07:08 -0700
commit81aee8b5e4f479e242615bd20d271b20db69c9d8 (patch)
tree432162e3d54d50ae263bbc4635546d5292de4dd3
parent0b05ba3c9bfa7b6517d6a4c0c855167d1c33ae80 (diff)
downloadchef-81aee8b5e4f479e242615bd20d271b20db69c9d8.tar.gz
Add problem matchers for our Chefstyle run in GH
This will make it much easier for contributors to see where they make a mistake Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--.github/workflows/lint.yml15
-rw-r--r--.github/workflows/spellcheck.yml23
2 files changed, 15 insertions, 23 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 7462be46f3..159706e9e3 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -18,4 +18,19 @@ jobs:
with:
ruby-version: 2.7
bundler-cache: true
+ - uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR
- run: bundle exec rake style
+
+ spellcheck:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: carlosperate/download-file-action@v1.0.3
+ id: download-custom-dictionary
+ with:
+ file-url: 'https://raw.githubusercontent.com/chef/chef_dictionary/master/chef.txt'
+ file-name: 'chef_dictionary.txt'
+ - uses: zwaldowski/cspell-action@v1
+ with:
+ config: cspell.json
+ paths: "**/*"
diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml
deleted file mode 100644
index 554d677453..0000000000
--- a/.github/workflows/spellcheck.yml
+++ /dev/null
@@ -1,23 +0,0 @@
----
-name: spellcheck
-
-"on":
- pull_request:
- push:
- branches:
- - master
-
-jobs:
- spellcheck:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - uses: carlosperate/download-file-action@v1.0.3
- id: download-custom-dictionary
- with:
- file-url: 'https://raw.githubusercontent.com/chef/chef_dictionary/master/chef.txt'
- file-name: 'chef_dictionary.txt'
- - uses: zwaldowski/cspell-action@v1
- with:
- config: cspell.json
- paths: "**/*"