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

on:
pull_request:
push:
branches:
- main
- 7.1*
- 8.*

permissions:
contents: read
pull-requests: read

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-default
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go install github.com/magefile/mage@latest
make check-default
35 changes: 35 additions & 0 deletions .github/workflows/check-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: check-docs

on:
pull_request:
paths:
- '.github/workflows/check-docs.yml'
- '**/*.asciidoc'
- '**/*.md'
- 'deploy/kubernetes/*-kubernetes.yaml'

permissions:
contents: read
pull-requests: read

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: Install libsystemd-dev
run: sudo apt-get install -y libsystemd-dev
- name: Install librpm-dev
run: sudo apt-get install -y librpm-dev
- name: Run check
run: |
export PATH=$PATH:$(go env GOPATH)/bin
go install github.com/magefile/mage@latest
make check
2 changes: 2 additions & 0 deletions .github/workflows/opentelemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
- x-pack-metricbeat
- x-pack-osquerybeat
- x-pack-packetbeat
- check-default
- check-docs
types: [completed]

jobs:
Expand Down
4 changes: 0 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ pipeline {
stageStatusCache(id: 'Lint'){
withBeatsEnv(archive: false, id: "lint") {
dumpVariables()
whenTrue(env.ONLY_DOCS == 'true') {
cmd(label: "make check", script: "make check")
}
whenTrue(env.ONLY_DOCS == 'false') {
runLinting()
}
Expand Down Expand Up @@ -224,7 +221,6 @@ def runLinting() {
mapParallelTasks["${k}"] = v
}
}
mapParallelTasks['default'] = { cmd(label: 'make check-default', script: 'make check-default') }

parallel(mapParallelTasks)
}
Expand Down