Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.17](backport #32746) action: checks for filebeat and x-pack/filebeat #32837

Merged
merged 3 commits into from
Aug 25, 2022
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
29 changes: 29 additions & 0 deletions .github/workflows/check-filebeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: check-filebeat

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

env:
BEAT_MODULE: 'filebeat'

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 libsystemd-dev
run: sudo apt-get install -y libsystemd-dev
- name: Run check/update
run: |
go install github.com/magefile/mage
make -C ${{ env.BEAT_MODULE }} check update
make check-no-changes
29 changes: 29 additions & 0 deletions .github/workflows/check-xpack-filebeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: check-x-pack-filebeat

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

env:
BEAT_MODULE: 'x-pack/filebeat'

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
5 changes: 3 additions & 2 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
workflow_run:
workflows:
- check-dev-tools
- check-filebeat
- check-packetbeat
- check-x-pack-filebeat
- check-x-pack-functionbeat
- check-x-pack-packetbeat
- check-dev-tools
- check-packetbeat
- golangci-lint
- auditbeat
- filebeat
Expand Down
8 changes: 0 additions & 8 deletions filebeat/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 filebeat check;
make -C filebeat update;
make -C x-pack/filebeat check;
make -C x-pack/filebeat update;
make check-no-changes;
stage: lint
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down
8 changes: 0 additions & 8 deletions x-pack/filebeat/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/filebeat check;
make -C x-pack/filebeat update;
make -C filebeat check;
make -C filebeat update;
make check-no-changes;
stage: lint
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down