Skip to content

Commit 44fbc57

Browse files
authored
action: checks for metricbeat and x-pack/metricbeat (#32748)
1 parent da20ec7 commit 44fbc57

5 files changed

Lines changed: 56 additions & 16 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: check-metricbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/check-metricbeat.yml'
7+
- 'metricbeat/**'
8+
- 'x-pack/metricbeat/**'
9+
10+
env:
11+
BEAT_MODULE: 'metricbeat'
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Fetch Go version from .go-version
19+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
20+
- uses: actions/setup-go@v3
21+
with:
22+
go-version: ${{ env.GO_VERSION }}
23+
- name: Run check/update
24+
run: |
25+
go install github.com/magefile/mage
26+
make -C ${{ env.BEAT_MODULE }} check update
27+
make check-no-changes
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: check-x-pack-metricbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/check-xpack-metricbeat.yml'
7+
- 'x-pack/metricbeat/**'
8+
- 'metricbeat/**'
9+
10+
env:
11+
BEAT_MODULE: 'x-pack/metricbeat'
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Fetch Go version from .go-version
19+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
20+
- uses: actions/setup-go@v3
21+
with:
22+
go-version: ${{ env.GO_VERSION }}
23+
- name: Run check/update
24+
run: |
25+
go install github.com/magefile/mage
26+
make -C ${{ env.BEAT_MODULE }} check update
27+
make check-no-changes

.github/workflows/opentelemetry.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
- check-auditbeat
77
- check-dev-tools
88
- check-filebeat
9+
- check-metricbeat
910
- check-packetbeat
1011
- check-winlogbeat
1112
- check-x-pack-auditbeat
1213
- check-x-pack-filebeat
1314
- check-x-pack-functionbeat
15+
- check-x-pack-metricbeat
1416
- check-x-pack-osquerybeat
1517
- check-x-pack-packetbeat
1618
- check-x-pack-winlogbeat

metricbeat/Jenkinsfile.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ when:
1313
tags: true ## for all the tags
1414
platform: "immutable && ubuntu-18" ## default label for all the stages
1515
stages:
16-
checks:
17-
make: |
18-
make -C metricbeat check;
19-
make -C metricbeat update;
20-
make -C x-pack/metricbeat check;
21-
make -C x-pack/metricbeat update;
22-
make check-no-changes;
23-
stage: checks
2416
unitTest:
2517
mage: "mage build unitTest"
2618
stage: mandatory

x-pack/metricbeat/Jenkinsfile.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ when:
1313
tags: true ## for all the tags
1414
platform: "immutable && ubuntu-18" ## default label for all the stages
1515
stages:
16-
checks:
17-
make: |
18-
make -C x-pack/metricbeat check;
19-
make -C x-pack/metricbeat update;
20-
make -C metricbeat check;
21-
make -C metricbeat update;
22-
make check-no-changes;
23-
stage: checks
2416
unitTest:
2517
mage: "mage build unitTest"
2618
stage: mandatory

0 commit comments

Comments
 (0)