-
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.
[8.4](backport #32750) action: checks for winlogbeat and x-pack/winlo…
…gbeat (#32803)
- Loading branch information
1 parent
4a07748
commit b407e44
Showing
5 changed files
with
56 additions
and
18 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,27 @@ | ||
name: check-winlogbeat | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/check-winlogbeat.yml' | ||
- 'winlogbeat/**' | ||
- 'x-pack/winlogbeat/**' | ||
|
||
env: | ||
BEAT_MODULE: 'winlogbeat' | ||
|
||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: check-x-pack-winlogbeat | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/check-xpack-winlogbeat.yml' | ||
- 'x-pack/winlogbeat/**' | ||
- 'winlogbeat/**' | ||
|
||
env: | ||
BEAT_MODULE: 'x-pack/winlogbeat' | ||
|
||
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 | ||
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