Skip to content

Commit

Permalink
chore: update synthetic monitoring to use Github Action (#3434)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbdias authored Dec 8, 2023
1 parent 6d3d91f commit 94dcd60
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/scheduled-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 94dcd60

Please sign in to comment.