Skip to content

Commit

Permalink
action: checks for filebeat and x-pack/filebeat (#32746)
Browse files Browse the repository at this point in the history
(cherry picked from commit da20ec7)

# Conflicts:
#	.github/workflows/opentelemetry.yml
#	filebeat/Jenkinsfile.yml
#	x-pack/filebeat/Jenkinsfile.yml
  • Loading branch information
v1v authored and mergify[bot] committed Aug 25, 2022
1 parent 0d97755 commit 82c9723
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
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
11 changes: 11 additions & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ on:
workflows:
- check-x-pack-packetbeat
- check-dev-tools
- check-filebeat
- check-packetbeat
<<<<<<< HEAD
=======
- check-winlogbeat
- check-x-pack-auditbeat
- check-x-pack-filebeat
- check-x-pack-functionbeat
- check-x-pack-osquerybeat
- check-x-pack-packetbeat
- check-x-pack-winlogbeat
>>>>>>> da20ec779b (action: checks for filebeat and x-pack/filebeat (#32746))
- golangci-lint
- auditbeat
- filebeat
Expand Down
3 changes: 3 additions & 0 deletions filebeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
<<<<<<< HEAD
lint:
make: |
make -C filebeat check;
Expand All @@ -21,6 +22,8 @@ stages:
make -C x-pack/filebeat update;
make check-no-changes;
stage: lint
=======
>>>>>>> da20ec779b (action: checks for filebeat and x-pack/filebeat (#32746))
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down
3 changes: 3 additions & 0 deletions x-pack/filebeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
<<<<<<< HEAD
lint:
make: |
make -C x-pack/filebeat check;
Expand All @@ -22,6 +23,8 @@ stages:
make -C filebeat update;
make check-no-changes;
stage: lint
=======
>>>>>>> da20ec779b (action: checks for filebeat and x-pack/filebeat (#32746))
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down

0 comments on commit 82c9723

Please sign in to comment.