From 00e38f5a5f575c48746bad013c01106d57aa60a2 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 6 Mar 2024 09:36:00 +0100 Subject: [PATCH] github-action: install synthetics for running the UTs in x-pack/heartbeat (#38185) * install globally --- .github/workflows/macos-xpack-heartbeat.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/macos-xpack-heartbeat.yml b/.github/workflows/macos-xpack-heartbeat.yml index 502d10c1a3e..8a0c6c1897d 100644 --- a/.github/workflows/macos-xpack-heartbeat.yml +++ b/.github/workflows/macos-xpack-heartbeat.yml @@ -17,15 +17,17 @@ jobs: macos: runs-on: macos-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v3 + - 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 + 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