Skip to content

Commit 7ed1886

Browse files
v1vmergify-bot
authored andcommitted
CI: add GitHub actions for macos (push based) (#29032)
(cherry picked from commit 6c40884)
1 parent 97461f3 commit 7ed1886

12 files changed

Lines changed: 372 additions & 0 deletions
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: auditbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-auditbeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'auditbeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: filebeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-filebeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'filebeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: heartbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-heartbeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'heartbeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: metricbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-metricbeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'metricbeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && echo "See https://github.com/elastic/beats/issues/29038"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: packetbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-packetbeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'packetbeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: x-pack-auditbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-xpack-auditbeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'x-pack/auditbeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: x-pack-filebeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-xpack-filebeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'x-pack/filebeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: x-pack-functionbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-xpack-functionbeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'x-pack/functionbeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: x-pack-heartbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-xpack-heartbeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'x-pack/heartbeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: x-pack-metricbeat
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/macos-xpack-metricbeat.yml'
7+
push:
8+
branches:
9+
- master
10+
- 7.1*
11+
- 8.*
12+
13+
env:
14+
BEAT_MODULE: 'x-pack/metricbeat'
15+
16+
jobs:
17+
macos:
18+
runs-on: macos-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Fetch Go version from .go-version
22+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
23+
- uses: actions/setup-go@v2
24+
with:
25+
go-version: ${{ env.GO_VERSION }}
26+
- name: Install dependencies
27+
run: go get -u github.com/magefile/mage
28+
- name: Run build
29+
run: cd ${{ env.BEAT_MODULE }} && mage build
30+
- name: Run test
31+
run: cd ${{ env.BEAT_MODULE }} && mage unitTest

0 commit comments

Comments
 (0)