-
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.
[7.17](backport #32748) action: checks for metricbeat and x-pack/metr…
…icbeat (#32840)
- Loading branch information
1 parent
c5e25a6
commit ecdd50e
Showing
5 changed files
with
56 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,27 @@ | ||
name: check-metricbeat | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/check-metricbeat.yml' | ||
- 'metricbeat/**' | ||
- 'x-pack/metricbeat/**' | ||
|
||
env: | ||
BEAT_MODULE: 'metricbeat' | ||
|
||
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-metricbeat | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '.github/workflows/check-xpack-metricbeat.yml' | ||
- 'x-pack/metricbeat/**' | ||
- 'metricbeat/**' | ||
|
||
env: | ||
BEAT_MODULE: 'x-pack/metricbeat' | ||
|
||
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