Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
action: checks for metricbeat and x-pack/metricbeat (#32748)
Browse files Browse the repository at this point in the history
(cherry picked from commit 44fbc57)

# Conflicts:
#	metricbeat/Jenkinsfile.yml
#	x-pack/metricbeat/Jenkinsfile.yml
v1v authored and mergify[bot] committed Aug 25, 2022
1 parent c5e25a6 commit 184409b
Showing 5 changed files with 62 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-metricbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: check-metricbeat

on:
pull_request:
paths:
- '.github/workflows/check-metricbeat.yml'
- 'metricbeat/**'
- 'x-pack/metricbeat/**'

env:
BEAT_MODULE: 'metricbeat'

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
27 changes: 27 additions & 0 deletions .github/workflows/check-xpack-metricbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: check-x-pack-metricbeat

on:
pull_request:
paths:
- '.github/workflows/check-xpack-metricbeat.yml'
- 'x-pack/metricbeat/**'
- 'metricbeat/**'

env:
BEAT_MODULE: 'x-pack/metricbeat'

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
2 changes: 2 additions & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
@@ -6,11 +6,13 @@ on:
- check-auditbeat
- check-dev-tools
- check-filebeat
- check-metricbeat
- check-packetbeat
- check-winlogbeat
- check-x-pack-auditbeat
- check-x-pack-filebeat
- check-x-pack-functionbeat
- check-x-pack-metricbeat
- check-x-pack-osquerybeat
- check-x-pack-packetbeat
- check-x-pack-winlogbeat
3 changes: 3 additions & 0 deletions metricbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
<<<<<<< HEAD
lint:
make: |
make -C metricbeat check;
@@ -21,6 +22,8 @@ stages:
make -C x-pack/metricbeat update;
make check-no-changes;
stage: lint
=======
>>>>>>> 44fbc57ed3 (action: checks for metricbeat and x-pack/metricbeat (#32748))
unitTest:
mage: "mage build unitTest"
stage: mandatory
3 changes: 3 additions & 0 deletions x-pack/metricbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@ 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/metricbeat check;
@@ -22,6 +23,8 @@ stages:
make -C metricbeat update;
make check-no-changes;
stage: lint
=======
>>>>>>> 44fbc57ed3 (action: checks for metricbeat and x-pack/metricbeat (#32748))
unitTest:
mage: "mage build unitTest"
stage: mandatory

0 comments on commit 184409b

Please sign in to comment.