Skip to content

Commit

Permalink
[7.17](backport #32754) action: checks for x-pack/libbeat and libbeat (
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Sep 1, 2022
1 parent 34fce26 commit 5bddc60
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 14 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/check-libbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: check-libbeat

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

env:
BEAT_MODULE: 'libbeat'

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: Install libpcap-dev
run: sudo apt-get install -y libpcap-dev
- 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-libbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: check-x-pack-libbeat

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

env:
BEAT_MODULE: 'x-pack/libbeat'

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 @@ -7,13 +7,15 @@ on:
- check-dev-tools
- check-filebeat
- check-heartbeat
- check-libbeat
- check-metricbeat
- check-packetbeat
- check-winlogbeat
- check-x-pack-auditbeat
- check-x-pack-filebeat
- check-x-pack-functionbeat
- check-x-pack-heartbeat
- check-x-pack-libbeat
- check-x-pack-metricbeat
- check-x-pack-osquerybeat
- check-x-pack-packetbeat
Expand Down
8 changes: 0 additions & 8 deletions libbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
lint:
make: |
make -C libbeat check;
make -C libbeat update;
make -C x-pack/libbeat check;
make -C x-pack/libbeat update;
make check-no-changes;
stage: lint
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down
6 changes: 0 additions & 6 deletions x-pack/libbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,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/libbeat check;
make -C x-pack/libbeat update;
make check-no-changes;
stage: lint
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down

0 comments on commit 5bddc60

Please sign in to comment.