Update ci.yml #659
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
<<<<<<< HEAD:.github/workflows/smoke-tests-schedule.yml | ||
uses: elastic/oblt-actions/elastic/active-branches@31e93d1dfb82adc106fc7820f505db1afefe43b1 # v1 | ||
======= | ||
uses: elastic/oblt-actions/elastic/active-branches@v1 | ||
>>>>>>> 0e1f32a6 (ci: revert image pinning for internal and github actions (#17191)):.github/workflows/smoke-tests-os-sched.yml | ||
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 | ||
<<<<<<< HEAD:.github/workflows/smoke-tests-schedule.yml | ||
uses: elastic/oblt-actions/check-dependent-jobs@31e93d1dfb82adc106fc7820f505db1afefe43b1 # v1 | ||
with: | ||
jobs: ${{ toJSON(needs) }} | ||
- uses: elastic/oblt-actions/slack/notify-result@9a8ac45080b2f079246e2a0c665b551c6986b6c3 # v1.9.1 | ||
======= | ||
uses: elastic/oblt-actions/check-dependent-jobs@v1 | ||
with: | ||
jobs: ${{ toJSON(needs) }} | ||
- uses: elastic/oblt-actions/slack/notify-result@v1 | ||
>>>>>>> 0e1f32a6 (ci: revert image pinning for internal and github actions (#17191)):.github/workflows/smoke-tests-os-sched.yml | ||
with: | ||
bot-token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
channel-id: "#apm-server" | ||
status: ${{ steps.check.outputs.status }} |