diff --git a/.github/workflows/check-dev-tools.yml b/.github/workflows/check-dev-tools.yml new file mode 100644 index 000000000000..df71c821a103 --- /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 0802315d35a6..a14ebaf6b968 100644 --- a/.github/workflows/opentelemetry.yml +++ b/.github/workflows/opentelemetry.yml @@ -5,6 +5,7 @@ on: workflows: - check-x-pack-osquerybeat - check-x-pack-packetbeat + - check-dev-tools - check-packetbeat - golangci-lint - auditbeat diff --git a/Jenkinsfile.yml b/Jenkinsfile.yml index 8142fc2e451a..811b4ae985be 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 e0efd0758176..000000000000 --- 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