forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.68 KB
/
smoke-tests-os.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
name: smoke-tests-os
run-name: Smoke Tests OS
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-os:
name: Run smoke tests OS
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 }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Get version
run: echo "VERSION=$(make get-version)" >> "${GITHUB_ENV}"
- 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 }}
- name: Run smoke tests OS
working-directory: ${{ github.workspace }}/testing/smoke/supported-os
run: ./test.sh ${VERSION}-SNAPSHOT