Skip to content

feat: adding support for webhook notifications #222

feat: adding support for webhook notifications

feat: adding support for webhook notifications #222

Workflow file for this run

on: [pull_request]
jobs:
goreleaser:
name: "Release"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
version: latest
args: build --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run go generate
run: go generate
- name: Check differences after go generate
run: |
git diff --compact-summary --exit-code || \
(echo; echo "Unexpected difference in directories after code generation. Run 'go generate' command and commit."; exit 1)
acceptance:
name: Acceptance Tests
if: github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: '1.5.*'
terraform_wrapper: false
- run: go test -v -cover ./...
env:
TE_TOKEN: ${{ secrets.TE_TOKEN }}
TE_AID: ${{ secrets.TE_AID }}
TE_API_ENDPOINT: 'https://api.stg.thousandeyes.com/v6'
TF_ACC: '1'
unit:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- run: go test -v -cover ./...