-
Notifications
You must be signed in to change notification settings - Fork 4.9k
44 lines (41 loc) · 1.1 KB
/
macos-xpack-heartbeat.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: x-pack-heartbeat
on:
pull_request:
paths:
- '.github/workflows/macos-xpack-heartbeat.yml'
push:
branches:
- main
- 7.1*
- 8.*
env:
BEAT_MODULE: 'x-pack/heartbeat'
jobs:
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version-file: .go-version
cache-dependency-path: ./go.sum
- uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: ./libbeat/tests/system/requirements.txt
- name: Install dependencies
run: go install github.com/magefile/mage
- name: Run build
run: cd ${{ env.BEAT_MODULE }} && mage build
- name: Run test
run: cd ${{ env.BEAT_MODULE }} && mage unitTest
- uses: v1v/otel-upload-test-artifact-action@v2
if: always()
continue-on-error: true
with:
jobName: "macos"
stepName: "Run test"
path: "${{ env.BEAT_MODULE }}/build/TEST*.xml"
type: "junit"
githubToken: ${{ secrets.GITHUB_TOKEN }}