diff --git a/.github/workflows/check-xpack-osquerybeat.yml b/.github/workflows/check-xpack-osquerybeat.yml new file mode 100644 index 00000000000..b97ec590526 --- /dev/null +++ b/.github/workflows/check-xpack-osquerybeat.yml @@ -0,0 +1,27 @@ +name: check-x-pack-osquerybeat + +on: + pull_request: + paths: + - '.github/workflows/check-xpack-osquerybeat.yml' + - 'x-pack/osquerybeat/**' + - 'osquerybeat/**' + +env: + BEAT_MODULE: 'x-pack/osquerybeat' + +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 5e48b49ff8b..0802315d35a 100644 --- a/.github/workflows/opentelemetry.yml +++ b/.github/workflows/opentelemetry.yml @@ -3,6 +3,7 @@ name: OpenTelemetry Export Trace on: workflow_run: workflows: + - check-x-pack-osquerybeat - check-x-pack-packetbeat - check-packetbeat - golangci-lint diff --git a/x-pack/osquerybeat/Jenkinsfile.yml b/x-pack/osquerybeat/Jenkinsfile.yml index dce1d4a383d..bd3c42fa54b 100644 --- a/x-pack/osquerybeat/Jenkinsfile.yml +++ b/x-pack/osquerybeat/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/osquerybeat check; - make -C x-pack/osquerybeat update; - make check-no-changes; - stage: checks unitTest: mage: "mage build unitTest" stage: mandatory