Add workflows #1
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 & Check the Profile | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
validate: | |
name: Lint | |
runs-on: ubuntu-24.04 | |
env: | |
LC_ALL: "en_US.UTF-8" | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: "3.1" | |
- name: Run Bundle Install | |
run: bundle install | |
- name: Installed Inspec | |
run: bundle exec cinc-auditor version | |
- name: Vendor the Profile | |
run: bundle exec cinc-auditor vendor . --overwrite | |
- name: Check the Inspec profile | |
run: bundle exec rake inspec:check | |
- name: Lint the Profile | |
run: bundle exec rake lint |