From b313da17c1d30cbb1f733aed2e2da070ef58524e Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 17 Sep 2021 18:19:05 +0200 Subject: [PATCH] Add honeycomb reporting --- .github/workflows/ci.yml | 13 +++++++++++++ .sync.yml | 1 + Gemfile | 1 + 3 files changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f02ee9..38c1e72 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ name: CI on: pull_request +env: + HONEYCOMB_DATASET: litmus tests + jobs: setup_matrix: name: 'Setup Test Matrix' @@ -17,6 +20,16 @@ jobs: env: BUNDLE_WITHOUT: development:system_tests:release steps: + - name: "Honeycomb: Start recording" + uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1 + with: + apikey: ${{ secrets.BUILDEVENTS_APIKEY }} + dataset: ${{ env.HONEYCOMB_DATASET }} + job-status: ${{ job.status }} + - name: "Honeycomb: Start first step" + run: | + echo STEP_ID=setup-environment >> $GITHUB_ENV + echo STEP_START=$(date +%s) >> $GITHUB_ENV - uses: actions/checkout@v2 - name: Setup ruby uses: ruby/setup-ruby@v1 diff --git a/.sync.yml b/.sync.yml index 35424a9..9b9676d 100644 --- a/.sync.yml +++ b/.sync.yml @@ -3,3 +3,4 @@ Gemfile: optional: ':test': - gem: puppet-lint-param-docs + - gem: rspec_honeycomb_formatter diff --git a/Gemfile b/Gemfile index e43173e..f52973b 100644 --- a/Gemfile +++ b/Gemfile @@ -9,6 +9,7 @@ group :test do gem 'simplecov-console', :require => false gem 'puppet_metadata', '~> 1.0', :require => false gem 'puppet-lint-param-docs', :require => false + gem 'rspec_honeycomb_formatter', :require => false end group :development do