Skip to content

Add workflows

Add workflows #1

Workflow file for this run

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