restore erb validation mock ruby binding #59
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: ci | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'lib/**' | |
| - 'spec/**/*_spec.rb' | |
| pull_request: | |
| branches: [master] | |
| paths: | |
| - 'lib/**' | |
| - 'spec/**/*_spec.rb' | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| ruby_version: | |
| - '3.0' | |
| - '3.3' # latest supported by Puppet 8 | |
| runs-on: ubuntu-latest | |
| container: ruby:${{ matrix.ruby_version }}-slim | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: install some prerequisite packages | |
| run: apt-get update && apt-get install -y cmake pkg-config | |
| - name: bundler install | |
| run: bundle install --retry=3 | |
| - name: run tests | |
| run: bundle exec rake unit system |