Skip to content

Commit b444c7f

Browse files
authored
chore(ci): add homebrew smoke test MONGOSH-1895 (#2260)
1 parent 0090245 commit b444c7f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/homebrew.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Smoke Test Homebrew install"
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
7+
jobs:
8+
smoke-test-homebrew:
9+
name: Test on ${{ matrix.runner }}
10+
runs-on: ${{ matrix.runner}}
11+
strategy:
12+
matrix:
13+
runner: [macos-13, macos-14, macos-15]
14+
fail-fast: false
15+
steps:
16+
- name: Install mongosh
17+
run: brew install mongosh
18+
19+
- name: Run smoke tests
20+
run: npx --yes mongodb-runner exec -- sh -c 'env MONGOSH_SMOKE_TEST_SERVER=$MONGODB_URI mongosh --smokeTests'
21+
22+
- name: Report failure
23+
if: ${{ failure() }}
24+
env:
25+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_MONGOSH_DEVEL_WEBHOOK_URL }}
26+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
27+
uses: slackapi/[email protected]
28+
with:
29+
payload: |
30+
{
31+
"text": "Homebrew smoke test failed on ${{ matrix.runner }}",
32+
"blocks": [
33+
{
34+
"type": "section",
35+
"text": {
36+
"type": "mrkdwn",
37+
"text": "Homebrew smoke test failed on ${{ matrix.runner }}: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|${{ github.run_id }}>"
38+
}
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)