Skip to content

Merge branch 'functionaltests' into test/funcionaltests #9

Merge branch 'functionaltests' into test/funcionaltests

Merge branch 'functionaltests' into test/funcionaltests #9

---
name: functional-tests
on:
workflow_dispatch: ~
schedule:
- cron: '0 3 * * 1-5'
# for testing purposes
push:
branches:
- test/funcionaltests
permissions:
contents: read
id-token: write
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
environment:
- 'qa'
- 'pro'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'functionaltests/go.mod'
- uses: elastic/oblt-actions/google/auth@v1
- uses: google-github-actions/get-secretmanager-secrets@e5bb06c2ca53b244f978d33348d18317a7f263ce # v2.2.2
with:
export_to_environment: true
secrets: |-
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-${{ matrix.environment }}-api-key
- run: cd functionaltests && go test -v -timeout=20m -target "${{ matrix.environment }}" ./
notify:
if: always()
runs-on: ubuntu-latest
needs:
- run
steps:
- id: check
uses: elastic/oblt-actions/check-dependent-jobs@v1
with:
jobs: ${{ toJSON(needs) }}
- uses: elastic/oblt-actions/slack/notify-result@v1
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: "#apm-server"
status: ${{ steps.check.outputs.status }}