feat: pagerduty_service_integration_email
to trigger alerts on recieving email.
#167
Workflow file for this run
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
concurrency: terraform-pagerduty-alerting-terratest | |
name: terratest | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: write | |
env: | |
PAGERDUTY_TOKEN: ${{ secrets.PAGERDUTY_TOKEN }} | |
TF_VAR_pagerduty_token: ${{ secrets.PAGERDUTY_TOKEN }} | |
jobs: | |
terratest: | |
name: terratest | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up Go (1.19) | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
id: go | |
- name: Run terratest | |
run: | | |
cd test | |
go test -v -timeout 5m | |
- name: Release | |
if: github.event_name == 'push' | |
uses: cycjimmy/semantic-release-action@v3 | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
extra_plugins: | | |
@semantic-release/git@10.0.1 | |
@semantic-release/exec@6.0.3 | |
@semantic-release/changelog@6.0.1 |