Drop EOL platforms, bump Chef/cookstyle, expand test coverage #103
This file contains hidden or 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: Unit Testing | |
| on: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| rspec: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install Chef | |
| uses: actionshub/chef-install@715f6ec56df078a1c7f23df9d1038136c9797b1b # 6.0.0 | |
| - name: Run RSpec | |
| run: chef exec rspec -f j -o tmp/rspec_results.json -f p | |
| env: | |
| CHEF_LICENSE: accept-no-persist | |
| - name: RSpec Report | |
| uses: SonicGarden/rspec-report-action@1db4b15383ec30ec6ecfc9e7f92488647f7900bd # v6.0.1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| json-path: tmp/rspec_results.json | |
| if: always() |