Add --strict option to make warnings fatal #34
Workflow file for this run
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: 'PR tests' | |
on: | |
- pull_request | |
jobs: | |
syntax: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: | |
- '2.7' # Puppet 7 | |
- '3.2' # Puppet 8 | |
- '3.3' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true | |
- run: bundle exec rubocop | |
spec: | |
needs: | |
- syntax | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ruby: | |
- '2.7' # Puppet 7 | |
- '3.2' # Puppet 8 | |
- '3.3' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: ${{matrix.ruby}} | |
bundler-cache: true | |
- run: bundle exec rake spec |