-
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 x-pack/libbeat and libbeat (#32754)
- Loading branch information
1 parent
ecd0e13
commit 2160502
Showing
5 changed files
with
58 additions
and
14 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-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 |
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,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 |
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