From 2c46fb2c439dd7c3bbecb1dea9d6b089a5363fe0 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Thu, 1 Sep 2022 14:51:47 +0100 Subject: [PATCH] action: checks for x-pack/dockerlogbeat (#32751) (cherry picked from commit 80bacd422545c520afd734000c0331cf9ba2a313) # Conflicts: # x-pack/dockerlogbeat/Jenkinsfile.yml --- .../workflows/check-xpack-dockerlogbeat.yml | 27 +++++++++++++++++++ .github/workflows/opentelemetry.yml | 1 + x-pack/dockerlogbeat/Jenkinsfile.yml | 3 +++ 3 files changed, 31 insertions(+) create mode 100644 .github/workflows/check-xpack-dockerlogbeat.yml diff --git a/.github/workflows/check-xpack-dockerlogbeat.yml b/.github/workflows/check-xpack-dockerlogbeat.yml new file mode 100644 index 00000000000..e0b64b7847e --- /dev/null +++ b/.github/workflows/check-xpack-dockerlogbeat.yml @@ -0,0 +1,27 @@ +name: check-x-pack-dockerlogbeat + +on: + pull_request: + paths: + - '.github/workflows/check-xpack-dockerlogbeat.yml' + - 'x-pack/dockerlogbeat/**' + - 'dockerlogbeat/**' + +env: + BEAT_MODULE: 'x-pack/dockerlogbeat' + +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 update + make check-no-changes diff --git a/.github/workflows/opentelemetry.yml b/.github/workflows/opentelemetry.yml index 029e80f3b4b..b25f59e77bb 100644 --- a/.github/workflows/opentelemetry.yml +++ b/.github/workflows/opentelemetry.yml @@ -12,6 +12,7 @@ on: - check-packetbeat - check-winlogbeat - check-x-pack-auditbeat + - check-x-pack-dockerlogbeat - check-x-pack-filebeat - check-x-pack-functionbeat - check-x-pack-heartbeat diff --git a/x-pack/dockerlogbeat/Jenkinsfile.yml b/x-pack/dockerlogbeat/Jenkinsfile.yml index 52422328fee..e7b98fa1ab5 100644 --- a/x-pack/dockerlogbeat/Jenkinsfile.yml +++ b/x-pack/dockerlogbeat/Jenkinsfile.yml @@ -13,12 +13,15 @@ when: tags: true ## for all the tags platform: "immutable && ubuntu-18" ## default label for all the stages stages: +<<<<<<< HEAD lint: make: | make -C x-pack/dockerlogbeat check; make -C x-pack/dockerlogbeat update; make check-no-changes; stage: lint +======= +>>>>>>> 80bacd4225 (action: checks for x-pack/dockerlogbeat (#32751)) unitTest: mage: "mage build unitTest" stage: mandatory