forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 2.13 KB
/
smoke-tests-ess.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: smoke-tests-ess
run-name: Smoke Tests ESS
on:
workflow_call:
inputs:
branch:
required: true
type: string
# limit the access of the generated GITHUB_TOKEN
permissions:
contents: read
jobs:
prepare:
name: Generate smoke tests list
runs-on: ubuntu-latest
outputs:
tests: ${{ steps.generate.outputs.tests }}
date: ${{ steps.generate.outputs.date }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- id: generate
name: Generate matrix and date
uses: ./.github/workflows/generate-smoke-tests-list
with:
vault-url: ${{ secrets.VAULT_ADDR }}
vault-role-id: ${{ secrets.VAULT_ROLE_ID }}
vault-secret-id: ${{ secrets.VAULT_SECRET_ID }}
smoke-tests-ess:
name: Run smoke tests ${{ matrix.test }} for ${{ matrix.version }}
runs-on: ubuntu-latest
needs: prepare
env:
TF_VAR_BUILD_ID: ${{ github.run_id }}
TF_VAR_ENVIRONMENT: 'ci'
TF_VAR_BRANCH: ${{ github.ref_name }}
TF_VAR_REPO: ${{ github.repository }}
TF_VAR_CREATED_DATE: ${{ needs.prepare.outputs.date }}
strategy:
fail-fast: false
matrix:
test: ${{ fromJSON(needs.prepare.outputs.tests) }}
version:
- '7.17'
- 'latest'
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Setup cluster env
uses: ./.github/workflows/setup-cluster-env
with:
vault-url: ${{ secrets.VAULT_ADDR }}
vault-role-id: ${{ secrets.VAULT_ROLE_ID }}
vault-secret-id: ${{ secrets.VAULT_SECRET_ID }}
ec-key-secret: 'secret/observability-team/ci/elastic-cloud/observability-pro'
aws-account-secret: 'secret/observability-team/ci/elastic-observability-aws-account-auth'
- name: Run smoke tests ${{ matrix.test }} for ${{ matrix.version }}
run: make smoketest/run-version TEST_DIR=${{ matrix.test }} SMOKETEST_VERSION=${{ matrix.version }}
- if: always()
name: Teardown smoke test infra
run: make smoketest/cleanup TEST_DIR=${{ matrix.test }}