Skip to content

Commit

Permalink
action: checks for x-pack/osquerybeat (#32753)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Aug 24, 2022
1 parent 2ebe891 commit 690783f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/check-xpack-osquerybeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: check-x-pack-osquerybeat

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

env:
BEAT_MODULE: 'x-pack/osquerybeat'

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
1 change: 1 addition & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: OpenTelemetry Export Trace
on:
workflow_run:
workflows:
- check-x-pack-osquerybeat
- check-x-pack-packetbeat
- check-packetbeat
- golangci-lint
Expand Down
6 changes: 0 additions & 6 deletions x-pack/osquerybeat/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/osquerybeat check;
make -C x-pack/osquerybeat update;
make check-no-changes;
stage: checks
unitTest:
mage: "mage build unitTest"
stage: mandatory
Expand Down

0 comments on commit 690783f

Please sign in to comment.