-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update synthetic monitoring to use Github Action (#3434)
- Loading branch information
1 parent
6d3d91f
commit 94dcd60
Showing
1 changed file
with
13 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,16 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Tracetest CLI | ||
run: | | ||
curl -L https://raw.githubusercontent.com/kubeshop/tracetest/main/install-cli.sh | bash | ||
|
||
- name: Configure Tracetest CLI | ||
run: | | ||
tracetest configure --token ${{secrets.TRACETEST_POKESHOP_TOKEN}} | ||
uses: kubeshop/tracetest-github-action@v1 | ||
with: | ||
token: ${{secrets.TRACETEST_POKESHOP_TOKEN}} | ||
|
||
- name: Run synthetic monitoring tests | ||
run: | | ||
tracetest run testsuite --file ./testing/synthetic-monitoring/pokeshop/_testsuite.yaml --vars ./testing/synthetic-monitoring/pokeshop/_variableset.yaml | ||
- name: Send message on Slack in case of failure | ||
if: ${{ failure() }} | ||
uses: slackapi/[email protected] | ||
|
@@ -59,22 +60,24 @@ jobs: | |
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SYNTETIC_MONITORING_SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | ||
|
||
otel-demo-trace-based-tests: | ||
name: Run trace based tests for Open Telemetry demo | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install Tracetest CLI | ||
run: | | ||
curl -L https://raw.githubusercontent.com/kubeshop/tracetest/main/install-cli.sh | bash | ||
|
||
- name: Configure Tracetest CLI | ||
run: | | ||
tracetest configure --token ${{secrets.TRACETEST_OTELDEMO_TOKEN}} | ||
uses: kubeshop/tracetest-github-action@v1 | ||
with: | ||
token: ${{secrets.TRACETEST_OTELDEMO_TOKEN}} | ||
|
||
- name: Run synthetic monitoring tests | ||
run: | | ||
tracetest run testsuite --file ./testing/synthetic-monitoring/otel-demo/_testsuite.yaml --vars ./testing/synthetic-monitoring/otel-demo/_variableset.yaml | ||
- name: Send message on Slack in case of failure | ||
if: ${{ failure() }} | ||
uses: slackapi/[email protected] | ||
|