-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
action: checks for filebeat and x-pack/filebeat (#32746)
- Loading branch information
1 parent
39f4e64
commit d998bc1
Showing
5 changed files
with
60 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters