Update pre-commit.yml #168
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-os | ||
run-name: Smoke Tests OS | ||
on: | ||
workflow_call: | ||
inputs: | ||
branch: | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: 'The branch to checkout' | ||
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
- id: generate | ||
name: Generate matrix and date | ||
uses: ./.github/workflows/generate-smoke-tests-list | ||
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 }} | ||
permissions: | ||
contents: read | ||
id-token: write | ||
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 | ||
<<<<<<< HEAD | ||
- uses: elastic/oblt-actions/aws/auth@31e93d1dfb82adc106fc7820f505db1afefe43b1 # v1 | ||
- uses: elastic/oblt-actions/google/auth@31e93d1dfb82adc106fc7820f505db1afefe43b1 # v1 | ||
======= | ||
- uses: elastic/oblt-actions/aws/auth@v1 | ||
- uses: elastic/oblt-actions/google/auth@v1 | ||
>>>>>>> 0e1f32a6 (ci: revert image pinning for internal and github actions (#17191)) | ||
- 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-pro-api-key | ||
- name: Run smoke tests OS | ||
working-directory: ${{ github.workspace }}/testing/smoke/supported-os | ||
run: ./test.sh ${VERSION}-SNAPSHOT |