Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions metricbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
lint:
make: |
make -C metricbeat check;
make -C metricbeat update;
make -C x-pack/metricbeat check;
make -C x-pack/metricbeat update;
make check-no-changes;
stage: lint
unitTest:
mage: "mage build unitTest"
stage: mandatory
Expand Down
8 changes: 0 additions & 8 deletions x-pack/metricbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
lint:
make: |
make -C x-pack/metricbeat check;
make -C x-pack/metricbeat update;
make -C metricbeat check;
make -C metricbeat update;
make check-no-changes;
stage: lint
unitTest:
mage: "mage build unitTest"
stage: mandatory
Expand Down