Merge pull request #308 from puppetlabs-seteam/LTSupdates #286
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 github action workflow runs Onceover and syntax checks on PRs and pushes to mater | |
name: Test repo | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: | |
- 'master' | |
jobs: | |
run_checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby 2.7 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
rubygems: default | |
bundler: latest | |
- name: Install gems | |
run: bundle install --jobs 4 --retry 3 | |
- name: Run sytax check | |
run: bundle exec rake syntax | |
# - name: Run Onceover | |
# run: bundle exec onceover run spec --force --parallel --format documentation | |
- name: Run Rubocop | |
# run: rake rubocop | |
run: bundle exec rubocop site-modules/deployments/**/*.rb |