-
Notifications
You must be signed in to change notification settings - Fork 525
67 lines (61 loc) · 1.6 KB
/
smoke-tests-schedule.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
name: smoke-tests
run-name: Smoke Tests
on:
workflow_dispatch: ~
schedule:
- cron: '0 3 * * 1-5'
# Limit the access of the generated GITHUB_TOKEN
permissions:
contents: read
jobs:
prepare-smoke-tests-os:
name: Generate smoke tests list
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.generate.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- id: generate
name: Generate matrix
uses: elastic/oblt-actions/elastic/active-branches@v1
with:
exclude-branches: '7.17'
smoke-tests-os:
name: Run smoke tests OS
needs: prepare-smoke-tests-os
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.prepare-smoke-tests-os.outputs.matrix) }}
permissions:
contents: read
id-token: write
uses: ./.github/workflows/smoke-tests-os.yml
with:
branch: ${{ matrix.branch }}
secrets: inherit
smoke-tests-ess:
name: Run smoke tests ESS
permissions:
contents: read
id-token: write
uses: ./.github/workflows/smoke-tests-ess.yml
with:
branch: 'main'
secrets: inherit
all-smoke-tests:
name: All Smoke Tests
if: always()
runs-on: ubuntu-latest
needs:
- smoke-tests-os
- smoke-tests-ess
steps:
- id: check
uses: elastic/oblt-actions/check-dependent-jobs@v1
with:
jobs: ${{ toJSON(needs) }}
- uses: elastic/oblt-actions/slack/[email protected]
with:
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
channel-id: "#apm-server"
status: ${{ steps.check.outputs.status }}