Skip to content

Commit

Permalink
action: checks for auditbeat and x-pack/auditbeat (#32745)
Browse files Browse the repository at this point in the history
(cherry picked from commit beff80f)

# Conflicts:
#	.github/workflows/opentelemetry.yml
#	auditbeat/Jenkinsfile.yml
#	x-pack/auditbeat/Jenkinsfile.yml
  • Loading branch information
v1v authored and mergify[bot] committed Aug 24, 2022
1 parent 0d97755 commit 4aeeee2
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
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 }}"
12 changes: 12 additions & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@ name: OpenTelemetry Export Trace
on:
workflow_run:
workflows:
<<<<<<< HEAD
- check-x-pack-packetbeat
- check-dev-tools
- check-packetbeat
=======
- check-auditbeat
- check-dev-tools
- check-packetbeat
- check-winlogbeat
- check-x-pack-auditbeat
- check-x-pack-functionbeat
- check-x-pack-osquerybeat
- check-x-pack-packetbeat
- check-x-pack-winlogbeat
>>>>>>> beff80f2af (action: checks for auditbeat and x-pack/auditbeat (#32745))
- golangci-lint
- auditbeat
- filebeat
Expand Down
3 changes: 3 additions & 0 deletions auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
<<<<<<< HEAD
lint:
make: |
make -C auditbeat check;
Expand All @@ -21,6 +22,8 @@ stages:
make -C x-pack/auditbeat update;
make check-no-changes;
stage: lint
=======
>>>>>>> beff80f2af (action: checks for auditbeat and x-pack/auditbeat (#32745))
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down
3 changes: 3 additions & 0 deletions x-pack/auditbeat/Jenkinsfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ when:
tags: true ## for all the tags
platform: "immutable && ubuntu-18" ## default label for all the stages
stages:
<<<<<<< HEAD
lint:
make: |
make -C x-pack/auditbeat check;
Expand All @@ -21,6 +22,8 @@ stages:
make -C auditbeat update;
make check-no-changes;
stage: lint
=======
>>>>>>> beff80f2af (action: checks for auditbeat and x-pack/auditbeat (#32745))
arm:
mage: "mage build unitTest"
platforms: ## override default label in this specific stage.
Expand Down

0 comments on commit 4aeeee2

Please sign in to comment.