Skip to content

add linters and publish action #3

add linters and publish action

add linters and publish action #3

Workflow file for this run

---
name: linters
'on':
pull_request:
push:
branches:
- main
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@main
- name: Run yaml Lint
uses: actionshub/yamllint@main
chefstyle:
runs-on: ubuntu-latest
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1']
name: Chefstyle on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- uses: r7kamura/rubocop-problem-matchers-action@v1
- run: bundle exec rake style
unit-test:
runs-on: ubuntu-latest
needs: [yamllint, chefstyle]
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1']
name: Unit Tests on Ruby ${{ matrix.ruby }}
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake test