Skip to content

Commit 5eb9a13

Browse files
authored
action: checks for heartbeat and x-pack/heartbeat (#32749)
1 parent ec2ed6a commit 5eb9a13

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-heartbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/check-heartbeat.yml'
7+
- 'heartbeat/**'
8+
- 'x-pack/heartbeat/**'
9+
10+
env:
11+
BEAT_MODULE: 'heartbeat'
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-heartbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/check-xpack-heartbeat.yml'
7+
- 'x-pack/heartbeat/**'
8+
- 'heartbeat/**'
9+
10+
env:
11+
BEAT_MODULE: 'x-pack/heartbeat'
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,12 +6,14 @@ on:
66
- check-auditbeat
77
- check-dev-tools
88
- check-filebeat
9+
- check-heartbeat
910
- check-metricbeat
1011
- check-packetbeat
1112
- check-winlogbeat
1213
- check-x-pack-auditbeat
1314
- check-x-pack-filebeat
1415
- check-x-pack-functionbeat
16+
- check-x-pack-heartbeat
1517
- check-x-pack-metricbeat
1618
- check-x-pack-osquerybeat
1719
- check-x-pack-packetbeat

heartbeat/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 heartbeat check;
19-
make -C heartbeat update;
20-
make -C x-pack/heartbeat check;
21-
make -C x-pack/heartbeat update;
22-
make check-no-changes;
23-
stage: checks
2416
arm:
2517
mage: "mage build unitTest"
2618
platforms: ## override default label in this specific stage.

x-pack/heartbeat/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/heartbeat check;
19-
make -C x-pack/heartbeat update;
20-
make -C heartbeat check;
21-
make -C heartbeat update;
22-
make check-no-changes;
23-
stage: checks
2416
unitTest:
2517
mage: "mage build unitTest"
2618
withNodejs: true

0 commit comments

Comments
 (0)