Merge pull request #421 from puppetlabs/dio-1065

(DIO-1065) Add lightstep gh action
This commit is contained in:
Gene Liverman 2020-10-23 11:44:03 -04:00 committed by GitHub
commit 063a6f6d53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 1 deletions

29
.github/workflows/lightstep.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Verify Pre-Deploy Status
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout repo
- name: Checkout
uses: actions/checkout@v2
# Run checks
- name: Lightstep Pre-Deploy Check
uses: lightstep/lightstep-action-predeploy@v0.1.4
id: lightstep-predeploy
with:
lightstep_api_key: ${{ secrets.LIGHTSTEP_API_KEY }}
pagerduty_api_token: ${{ secrets.PAGERDUTY_API_TOKEN }}
# Output status as a comment
- name: Add a Comment
uses: unsplash/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: ${{ steps.lightstep-predeploy.outputs.lightstep_predeploy_md }}
check_for_duplicate_msg: true

10
.lightstep.yml Normal file
View file

@ -0,0 +1,10 @@
organization: Puppet Inc
project: puppet-inc-prod
conditions:
# API /status error >0%
- SZcJVQfy
integrations:
pagerduty:
# VMPooler service
service: P714ID4

View file

@ -45,7 +45,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'pry'
s.add_development_dependency 'rack-test', '>= 0.6'
s.add_development_dependency 'rspec', '>= 3.2'
s.add_development_dependency 'rubocop'
s.add_development_dependency 'rubocop', '< 1.0'
s.add_development_dependency 'simplecov', '>= 0.11.2'
s.add_development_dependency 'yarjuf', '>= 2.0'
end