(CAT-2164) Correct yaml_syntax_validator
to error on empty file
#870
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: "ci" | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
workflow_dispatch: | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
jobs: | |
spec: | |
strategy: | |
fail-fast: false | |
matrix: | |
ruby_version: | |
- "2.7" | |
- "3.2" | |
include: | |
- puppet_gem_version: "~> 7.0" | |
ruby_version: "2.7" | |
- puppet_gem_version: "~> 8.0" | |
ruby_version: "3.2" | |
name: "spec (ruby ${{ matrix.ruby_version }})" | |
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main" | |
secrets: inherit | |
with: | |
rake_task: 'spec:coverage' | |
ruby_version: ${{ matrix.ruby_version }} | |
puppet_gem_version: ${{ matrix.puppet_gem_version }} | |
# This line enables CI shellcheck (reviewdog) to be run on the repository | |
run_shellcheck: true | |
acceptance: | |
needs: "spec" | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- "ubuntu-latest" | |
- "windows-2019" | |
ruby_version: | |
- "2.7" | |
- "3.2" | |
include: | |
- puppet_gem_version: "~> 7.0" | |
ruby_version: "2.7" | |
- puppet_gem_version: "~> 8.0" | |
ruby_version: "3.2" | |
name: "acceptance (ruby ${{ matrix.ruby_version }} | ${{ matrix.os }})" | |
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main" | |
secrets: inherit | |
with: | |
ruby_version: ${{ matrix.ruby_version }} | |
puppet_version: ${{ matrix.puppet_gem_version }} | |
rake_task: 'acceptance:local' | |
runs_on: ${{ matrix.os }} |