-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix yaml load error for ruby 3.1 (#220)
* Fix yaml load error for ruby 3.1 * update ruby versions * fix rspec mocks for hash with keywords in ruby 3.0+ * add simplecov to ignore word list --------- Signed-off-by: Corey Hemminger <[email protected]> Signed-off-by: Vikram Karve <[email protected]> Co-authored-by: Vikram Karve <[email protected]>
- Loading branch information
1 parent
80d7206
commit b0f946a
Showing
5 changed files
with
26 additions
and
23 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 |
---|---|---|
|
@@ -13,37 +13,34 @@ jobs: | |
env: | ||
BUNDLE_WITHOUT: ruby_shadow:omnibus_package | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
ruby-version: 3.1 | ||
bundler-cache: true | ||
- uses: r7kamura/rubocop-problem-matchers-action@v1 # this shows the failures in the PR | ||
- run: bundle exec chefstyle | ||
|
||
spellcheck: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: carlosperate/download-file-action@v1.0.3 | ||
- uses: actions/checkout@v3 | ||
- uses: carlosperate/download-file-action@v2.0.0 | ||
id: download-custom-dictionary | ||
with: | ||
file-url: 'https://raw.githubusercontent.com/chef/chef_dictionary/main/chef.txt' | ||
file-name: 'chef_dictionary.txt' | ||
- uses: zwaldowski/cspell-action@v1 | ||
with: | ||
config: cspell.json | ||
paths: "**/*" | ||
- uses: streetsidesoftware/[email protected] | ||
|
||
coverage-test: | ||
name: Coverage | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up ruby 2.7 | ||
- uses: actions/checkout@v3 | ||
- name: Set up ruby 3.1 | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
ruby-version: 3.1 | ||
bundler-cache: true | ||
- name: run specs | ||
run: bundle exec rake spec --trace | ||
|
@@ -52,4 +49,4 @@ jobs: | |
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
failedThreshold: 90 | ||
resultPath: coverage/.last_run.json | ||
resultPath: coverage/.last_run.json |
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 +1 @@ | ||
0.9.5 | ||
0.9.5 |
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
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