diff --git a/.github/workflows/check-xpack-functionbeat.yml b/.github/workflows/check-xpack-functionbeat.yml new file mode 100644 index 000000000000..5ce27961a219 --- /dev/null +++ b/.github/workflows/check-xpack-functionbeat.yml @@ -0,0 +1,27 @@ +name: check-x-pack-functionbeat + +on: + pull_request: + paths: + - '.github/workflows/check-xpack-functionbeat.yml' + - 'x-pack/functionbeat/**' + - 'functionbeat/**' + +env: + BEAT_MODULE: 'x-pack/functionbeat' + +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 755c519f2e23..9690d22d550e 100644 --- a/.github/workflows/opentelemetry.yml +++ b/.github/workflows/opentelemetry.yml @@ -6,6 +6,7 @@ on: - check-dev-tools - check-packetbeat - check-winlogbeat + - check-x-pack-functionbeat - check-x-pack-osquerybeat - check-x-pack-packetbeat - check-x-pack-winlogbeat diff --git a/x-pack/functionbeat/Jenkinsfile.yml b/x-pack/functionbeat/Jenkinsfile.yml index dcca85bfd70f..9f410f950ed2 100644 --- a/x-pack/functionbeat/Jenkinsfile.yml +++ b/x-pack/functionbeat/Jenkinsfile.yml @@ -13,12 +13,6 @@ when: tags: true ## for all the tags platform: "immutable && ubuntu-18" ## default label for all the stages stages: - checks: - make: | - make -C x-pack/functionbeat check; - make -C x-pack/functionbeat update; - make check-no-changes; - stage: checks arm: mage: "mage build unitTest" platforms: ## override default label in this specific stage.