Skip to content

CI

CI #13

Workflow file for this run

---
name: CI
on:
pull_request:
branches: [ master, main ]
workflow_dispatch:
concurrency:
group: ${{ github.head_ref }}

Check failure on line 10 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 10, Col: 10): Unexpected value ''
cancel-in-progress: true
jobs:
setup_matrix:
name: Setup Test Matrix
runs-on: ubuntu-20.04
timeout-minutes: 40
outputs:
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
github_action_test_matrix: ${{ steps.get-outputs.outputs.github_action_test_matrix }}
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Run static validations
run: bundle exec rake validate lint check
- name: Run rake rubocop
run: bundle exec rake rubocop
- name: Setup Test Matrix
id: get-outputs
run: bundle exec metadata2gha --use-fqdn --pidfile-workaround false
unit:
needs: setup_matrix
runs-on: ubuntu-20.04
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
include: ${{fromJson(needs.setup_matrix.outputs.puppet_unit_test_matrix)}}
name: Spec Puppet ${{ matrix.puppet }} (Ruby ${{ matrix.ruby }})
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: bundle exec rake parallel_spec
acceptance:
name: Litmus Acceptance
runs-on: ubuntu-20.04
env:
BOLT_GEM: true
CI: true
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Provision Testing Environments
run: |
bundle exec rake 'litmus:provision_list[default]'
bundle exec rake 'litmus:install_agent'
bundle exec rake 'litmus:install_module'
- name: Run Tests
run: bundle exec rake 'litmus:acceptance:parallel'
- name: Tear Down
run: bundle exec rake 'litmus:tear_down'
tests:
needs:
- unit
- acceptance
runs-on: ubuntu-20.04
name: Test suite
steps:
- run: echo Test suite completed