Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): add homebrew smoke test MONGOSH-1895 #2260

Merged
merged 5 commits into from
Nov 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/homebrew.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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 }}>"
}
}
]
}
Loading