-
Notifications
You must be signed in to change notification settings - Fork 67
43 lines (39 loc) · 1.3 KB
/
homebrew.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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:
- 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
# 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 }})"
}
}
]
}