-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (38 loc) · 1.29 KB
/
Browser.yml
File metadata and controls
43 lines (38 loc) · 1.29 KB
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: Browser
description: "browser support"
on:
schedule:
- cron: "15 */2 * * *" # Runs every 2 hours at 15 minutes past the hour
workflow_dispatch:
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test: [browser]
env: [dev, production]
env:
DATADOG_API_KEY: ${{ secrets.DATADOG_API_KEY }}
REGION: ${{ vars.REGION }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
XMTP_GATEWAY_HOST: ${{ matrix.env == 'testnet-staging' && secrets.XMTP_GATEWAY_HOST || '' }}
steps:
- uses: actions/checkout@v4
- name: Setup test env
uses: ./.github/actions/xmtp-test-setup
- name: Run tests
run: yarn test ${{ matrix.test }} --env ${{ matrix.env }} --no-fail --log warn --file --max-retry 3
- name: Cleanup and upload artifacts
if: always()
uses: ./.github/actions/xmtp-test-cleanup
with:
test-name: ${{ matrix.test }}
env: ${{ matrix.env }}
- name: Send Slack notification on failure
if: failure() || cancelled()
uses: ./.github/actions/slack-notification
with:
workflow-name: "Browser (${{ matrix.test }}, ${{ matrix.env }})"
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}