From 201648d835687a9db904166ef0152cadd6d281b1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 15:48:17 +0100 Subject: [PATCH] action: checks for dev-tools (#32755) (#32799) (cherry picked from commit 2515a93e6917443944e41698da272cf0d3e35aef) Co-authored-by: Victor Martinez --- .github/workflows/check-dev-tools.yml | 26 ++++++++++++++++++++++++++ .github/workflows/opentelemetry.yml | 1 + Jenkinsfile.yml | 1 - dev-tools/Jenkinsfile.yml | 17 ----------------- 4 files changed, 27 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/check-dev-tools.yml delete mode 100644 dev-tools/Jenkinsfile.yml diff --git a/.github/workflows/check-dev-tools.yml b/.github/workflows/check-dev-tools.yml new file mode 100644 index 00000000000..df71c821a10 --- /dev/null +++ b/.github/workflows/check-dev-tools.yml @@ -0,0 +1,26 @@ +name: check-dev-tools + +on: + pull_request: + paths: + - '.github/workflows/check-dev-tools.yml' + - 'dev-tools/**' + - 'libbeat/scripts/Makefile' + +env: + BEAT_MODULE: 'dev-tools' + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v3 + with: + go-version: ${{ env.GO_VERSION }} + - name: Run check/update + run: | + go install github.com/magefile/mage + make -C ${{ env.BEAT_MODULE }} check diff --git a/.github/workflows/opentelemetry.yml b/.github/workflows/opentelemetry.yml index 5e48b49ff8b..d7d12529a26 100644 --- a/.github/workflows/opentelemetry.yml +++ b/.github/workflows/opentelemetry.yml @@ -4,6 +4,7 @@ on: workflow_run: workflows: - check-x-pack-packetbeat + - check-dev-tools - check-packetbeat - golangci-lint - auditbeat diff --git a/Jenkinsfile.yml b/Jenkinsfile.yml index 8142fc2e451..811b4ae985b 100644 --- a/Jenkinsfile.yml +++ b/Jenkinsfile.yml @@ -17,7 +17,6 @@ projects: - "x-pack/osquerybeat" - "x-pack/packetbeat" - "x-pack/winlogbeat" - - "dev-tools" ## Changeset macros that are defined here and used in each specific 2.0 pipeline. changeset: diff --git a/dev-tools/Jenkinsfile.yml b/dev-tools/Jenkinsfile.yml deleted file mode 100644 index e0efd075817..00000000000 --- a/dev-tools/Jenkinsfile.yml +++ /dev/null @@ -1,17 +0,0 @@ -when: - branches: true ## for all the branches - changeset: ## when PR contains any of those entries in the changeset - - "^dev-tools/.*" - - "^libbeat/scripts/Makefile" - comments: ## when PR comment contains any of those entries - - "/test dev-tools" - labels: ## when PR labels matches any of those entries - - "dev-tools" - parameters: ## when parameter was selected in the UI. - - "dev-tools" - tags: true ## for all the tags -platform: "immutable && ubuntu-18" ## default label for all the stages -stages: - checks: - make: "make -C dev-tools check" - stage: checks