From b444c7f212ff27bd6206eea4575e5ca42a6ed3df Mon Sep 17 00:00:00 2001 From: Nikola Irinchev Date: Wed, 13 Nov 2024 13:21:48 +0100 Subject: [PATCH] chore(ci): add homebrew smoke test MONGOSH-1895 (#2260) --- .github/workflows/homebrew.yml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/homebrew.yml diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml new file mode 100644 index 000000000..c26a7777c --- /dev/null +++ b/.github/workflows/homebrew.yml @@ -0,0 +1,41 @@ +name: "Smoke Test Homebrew install" + +on: + schedule: + - cron: "0 0 * * *" + +jobs: + smoke-test-homebrew: + name: Test on ${{ matrix.runner }} + runs-on: ${{ matrix.runner}} + strategy: + matrix: + runner: [macos-13, macos-14, macos-15] + fail-fast: false + steps: + - name: Install mongosh + run: brew install mongosh + + - name: Run smoke tests + run: npx --yes mongodb-runner exec -- sh -c 'env MONGOSH_SMOKE_TEST_SERVER=$MONGODB_URI mongosh --smokeTests' + + - name: Report failure + if: ${{ failure() }} + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MONGOSH_DEVEL_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK + uses: slackapi/slack-github-action@v1.27.0 + with: + payload: | + { + "text": "Homebrew smoke test failed on ${{ matrix.runner }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Homebrew smoke test failed on ${{ matrix.runner }}: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>" + } + } + ] + }