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

[8.4](backport #32745) action: checks for auditbeat and x-pack/auditbeat #32813

Merged
merged 3 commits into from
Aug 25, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
27 changes: 27 additions & 0 deletions .github/workflows/check-audtibeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: check-auditbeat

on:
pull_request:
paths:
- '.github/workflows/check-auditbeat.yml'
- 'auditbeat/**'
- 'x-pack/auditbeat/**'

env:
BEAT_MODULE: 'auditbeat'

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
29 changes: 29 additions & 0 deletions .github/workflows/check-xpack-auditbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: check-x-pack-auditbeat

on:
pull_request:
paths:
- '.github/workflows/check-xpack-auditbeat.yml'
- 'x-pack/auditbeat/**'
- 'auditbeat/**'

env:
BEAT_MODULE: 'x-pack/auditbeat'

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 librpm-dev
run: sudo apt-get install -y librpm-dev
- name: Run check/update
uses: magefile/mage-action@v2
with:
args: check update
workdir: "${{ env.BEAT_MODULE }}"
3 changes: 3 additions & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ name: OpenTelemetry Export Trace
on:
workflow_run:
workflows:
- check-auditbeat
- check-dev-tools
- check-packetbeat
- check-winlogbeat
v1v marked this conversation as resolved.
Show resolved Hide resolved
- check-x-pack-auditbeat
- check-x-pack-functionbeat
- check-x-pack-osquerybeat
- check-x-pack-packetbeat
Expand Down
8 changes: 0 additions & 8 deletions auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
checks:
make: |
make -C auditbeat check;
make -C auditbeat update;
make -C x-pack/auditbeat check;
make -C x-pack/auditbeat update;
make check-no-changes;
stage: checks
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down
8 changes: 0 additions & 8 deletions x-pack/auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +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/auditbeat check;
make -C x-pack/auditbeat update;
make -C auditbeat check;
make -C auditbeat update;
make check-no-changes;
stage: checks
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down