Upgrade ruby to 3.3 #136
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
--- | |
name: lint | |
"on": | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
chefstyle: | |
runs-on: ubuntu-latest | |
env: | |
BUNDLE_WITHOUT: ruby_shadow:omnibus_package | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
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@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: streetsidesoftware/cspell-action@v2.12.0 | |
coverage-test: | |
name: Coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up ruby 3.3 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.3 | |
bundler-cache: true | |
- name: run specs | |
run: bundle exec rake spec --trace | |
- name: Simplecov Report | |
uses: aki77/simplecov-report-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
failedThreshold: 90 | |
resultPath: coverage/.last_run.json |