Explicitly set DOCKER_PULL, RACE_DETECTOR and TEST_COVERAGE for pipel… #5868
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | |
permissions: | |
contents: read | |
jobs: | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: .go-version | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
go install github.com/magefile/mage | |
cd ${{ env.BEAT_MODULE }} && npm install -g @elastic/synthetics | |
- 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 }} |