-
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.
actions: run check for x-pack/packetbeat and packebeat (#32711)
(cherry picked from commit 54b6f15) # Conflicts: # packetbeat/Jenkinsfile.yml # x-pack/packetbeat/Jenkinsfile.yml
- Loading branch information
1 parent
9519886
commit b6ae598
Showing
5 changed files
with
67 additions
and
0 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,30 @@ | ||
name: check-packetbeat | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/check-packetbeat.yml' | ||
- 'packetbeat/**' | ||
- 'x-pack/packetbeat/**' | ||
|
||
env: | ||
BEAT_MODULE: 'packetbeat' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Fetch Go version from .go-version | ||
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Install libpcap-dev | ||
run: sudo apt-get install -y libpcap-dev | ||
- name: Run check/update | ||
run: | | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
go install github.com/magefile/mage@latest | ||
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-packetbeat | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/check-xpack-packetbeat.yml' | ||
- 'x-pack/packetbeat/**' | ||
- 'packetbeat/**' | ||
|
||
env: | ||
BEAT_MODULE: 'x-pack/packetbeat' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Fetch Go version from .go-version | ||
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: Install libpcap-dev | ||
run: sudo apt-get install -y libpcap-dev | ||
- name: Run check/update | ||
uses: magefile/mage-action@v2 | ||
with: | ||
args: check update | ||
workdir: "${{ env.BEAT_MODULE }}" |
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