[updatecli] 8.x - Update to elastic/beats@ce5ddb0a673a (#2836) #10818
This file contains 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: UnitTests | |
on: | |
pull_request: | |
branches: | |
- main | |
- "[0-9]+.[0-9]+" | |
- "8.x" | |
types: [opened, synchronize, reopened] | |
push: | |
branches: | |
- main | |
- "8.x" | |
env: | |
K8S_MANIFEST_DIR: deploy | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
manifest_tests: | |
name: Manifest Tests | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 15 | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Get diff k8s manifests | |
uses: technote-space/get-diff-action@v6 | |
with: | |
PATTERNS: ${{ env.K8S_MANIFEST_DIR }}/** | |
- name: Run K8s manifest tests | |
if: env.GIT_DIFF | |
uses: stefanprodan/kube-tools@v1 | |
with: | |
kubectl: 1.18.4 | |
kubeval: v0.16.1 | |
command: | | |
kubeval --strict -d ${{ env.K8S_MANIFEST_DIR }} --ignore-missing-schemas --ignored-filename-patterns kustomization,kind,patch,cloudbeat,cloudformation,deployment-manager --skip-kinds ClusterConfig |