From fbb5212037535fc84cd2c3ab73d9b638d44fb312 Mon Sep 17 00:00:00 2001 From: Belen Bustamante Date: Wed, 21 Oct 2020 16:19:39 -0700 Subject: [PATCH] Add lightstep gh action --- .github/workflows/lightstep.yml | 29 +++++++++++++++++++++++++++++ .lightstep.yml | 10 ++++++++++ vmpooler.gemspec | 2 +- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/lightstep.yml create mode 100644 .lightstep.yml diff --git a/.github/workflows/lightstep.yml b/.github/workflows/lightstep.yml new file mode 100644 index 0000000..d32f2b1 --- /dev/null +++ b/.github/workflows/lightstep.yml @@ -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 diff --git a/.lightstep.yml b/.lightstep.yml new file mode 100644 index 0000000..c3d2ebc --- /dev/null +++ b/.lightstep.yml @@ -0,0 +1,10 @@ +organization: Puppet Inc +project: puppet-inc-prod +conditions: + # API /status error >0% + - SZcJVQfy +integrations: + pagerduty: + # VMPooler service + service: P714ID4 + diff --git a/vmpooler.gemspec b/vmpooler.gemspec index f6fedeb..39127d3 100644 --- a/vmpooler.gemspec +++ b/vmpooler.gemspec @@ -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