Skip to content

Fix with latest version of yard #536

Fix with latest version of yard

Fix with latest version of yard #536

Workflow file for this run

name: Unit tests
on:
pull_request:
types: [opened, reopened, edited, synchronize]
paths:
- .github/workflows/unit.yaml
- bolt.gemspec
- Gemfile
- Puppetfile
- bolt-modules/**
- lib/bolt/**
- libexec/**
- rakelib/tests.rake
- spec/**
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
unit:
name: Unit
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
ruby: [2.7, 3.1]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Update gems
run: bundle update
- name: Cache modules
id: modules
uses: actions/cache@v1
with:
path: modules
key: ${{ runner.os }}-modules-${{ hashFiles('**/Puppetfile') }}
- name: Install modules
if: steps.modules.outputs.cache-hit != 'true'
run: bundle exec r10k puppetfile install
- name: Unit tests
run: bundle exec rake tests:unit