Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

action: checks for x-pack/libbeat and libbeat #32754

Merged
merged 7 commits into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/check-libbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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@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
v1v marked this conversation as resolved.
Show resolved Hide resolved
go install github.com/magefile/mage@latest
v1v marked this conversation as resolved.
Show resolved Hide resolved
make -C ${{ env.BEAT_MODULE }} check update
make check-no-changes
28 changes: 28 additions & 0 deletions .github/workflows/check-xpack-libbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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@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: Run check/update
run: |
export PATH=$PATH:$(go env GOPATH)/bin
v1v marked this conversation as resolved.
Show resolved Hide resolved
go install github.com/magefile/mage@latest
v1v marked this conversation as resolved.
Show resolved Hide resolved
make -C ${{ env.BEAT_MODULE }} check update
make check-no-changes
2 changes: 2 additions & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: OpenTelemetry Export Trace
on:
workflow_run:
workflows:
- check-x-pack-libbeat
- check-libbeat
- check-x-pack-packetbeat
- check-packetbeat
- golangci-lint
Expand Down
8 changes: 0 additions & 8 deletions libbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
checks:
make: |
make -C libbeat check;
make -C libbeat update;
make -C x-pack/libbeat check;
make -C x-pack/libbeat update;
make check-no-changes;
stage: checks
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down
6 changes: 0 additions & 6 deletions x-pack/libbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
checks:
make: |
make -C x-pack/libbeat check;
make -C x-pack/libbeat update;
make check-no-changes;
stage: checks
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down