Skip to content
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
28 changes: 28 additions & 0 deletions .github/workflows/check-heartbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: check-heartbeat

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

env:
BEAT_MODULE: 'heartbeat'

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: |
export PATH=$PATH:$(go env GOPATH)/bin
Comment thread
v1v marked this conversation as resolved.
Outdated
go install github.com/magefile/mage
make -C ${{ env.BEAT_MODULE }} check update
make check-no-changes
27 changes: 27 additions & 0 deletions .github/workflows/check-xpack-heartbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: check-x-pack-heartbeat

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

env:
BEAT_MODULE: 'x-pack/heartbeat'

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
uses: magefile/mage-action@v2
with:
args: check update
workdir: "${{ env.BEAT_MODULE }}"
Comment thread
v1v marked this conversation as resolved.
Outdated
4 changes: 3 additions & 1 deletion .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: OpenTelemetry Export Trace
on:
workflow_run:
workflows:
- check-x-pack-packetbeat
- check-heartbeat
- check-packetbeat
- check-x-pack-heartbeat
- check-x-pack-packetbeat
- golangci-lint
- auditbeat
- filebeat
Expand Down
8 changes: 0 additions & 8 deletions heartbeat/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 heartbeat check;
make -C heartbeat update;
make -C x-pack/heartbeat check;
make -C x-pack/heartbeat 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/heartbeat/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/heartbeat check;
make -C x-pack/heartbeat update;
make -C heartbeat check;
make -C heartbeat update;
make check-no-changes;
stage: checks
unitTest:
mage: "mage build unitTest"
stage: mandatory
Expand Down