Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[7.17](backport #29032) CI: add GitHub actions for macos (push based) #29845

Merged
merged 1 commit into from
Jan 13, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
31 changes: 31 additions & 0 deletions .github/workflows/macos-auditbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: auditbeat

on:
pull_request:
paths:
- '.github/workflows/macos-auditbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'auditbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-filebeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: filebeat

on:
pull_request:
paths:
- '.github/workflows/macos-filebeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'filebeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-heartbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: heartbeat

on:
pull_request:
paths:
- '.github/workflows/macos-heartbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'heartbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-metricbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: metricbeat

on:
pull_request:
paths:
- '.github/workflows/macos-metricbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'metricbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && echo "See https://github.com/elastic/beats/issues/29038"
31 changes: 31 additions & 0 deletions .github/workflows/macos-packetbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: packetbeat

on:
pull_request:
paths:
- '.github/workflows/macos-packetbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'packetbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-xpack-auditbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: x-pack-auditbeat

on:
pull_request:
paths:
- '.github/workflows/macos-xpack-auditbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'x-pack/auditbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-xpack-filebeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: x-pack-filebeat

on:
pull_request:
paths:
- '.github/workflows/macos-xpack-filebeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'x-pack/filebeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-xpack-functionbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: x-pack-functionbeat

on:
pull_request:
paths:
- '.github/workflows/macos-xpack-functionbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'x-pack/functionbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-xpack-heartbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: x-pack-heartbeat

on:
pull_request:
paths:
- '.github/workflows/macos-xpack-heartbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'x-pack/heartbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-xpack-metricbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: x-pack-metricbeat

on:
pull_request:
paths:
- '.github/workflows/macos-xpack-metricbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'x-pack/metricbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-xpack-osquerybeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: x-pack-heartbeat

on:
pull_request:
paths:
- '.github/workflows/macos-xpack-osquerybeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'x-pack/heartbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
31 changes: 31 additions & 0 deletions .github/workflows/macos-xpack-packetbeat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: x-pack-metricbeat

on:
pull_request:
paths:
- '.github/workflows/macos-xpack-packetbeat.yml'
push:
branches:
- master
- 7.1*
- 8.*

env:
BEAT_MODULE: 'x-pack/metricbeat'

jobs:
macos:
runs-on: macos-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 dependencies
run: go get -u github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest