Skip to content

Commit

Permalink
chore(ci): add homebrew smoke test MONGOSH-1895
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Nov 12, 2024
1 parent 1bc517a commit bc8b733
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Smoke Test Homebrew install"

on:
schedule:
- cron: "0 0 * * *"
pull_request: # TODO: remove pull_request trigger

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:
- run: brew install mongosh
- run: mongosh --smokeTests
- name: Report failure
# TODO: replace with failure()
if: ${{ success() }}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MONGOSH_DEVEL_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
uses: slackapi/[email protected]
with:
payload: |
{
"text": "Homebrew smoke test failed on macOS ${{ matrix.runner }}"
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Failed run: [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
}
}
]
}

0 comments on commit bc8b733

Please sign in to comment.