-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (45 loc) · 1.66 KB
/
Performance-L.yml
File metadata and controls
50 lines (45 loc) · 1.66 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
44
45
46
47
48
49
50
name: Performance Large
description: "performance of medium groups"
on:
#pull_request:
schedule:
- cron: "45 */6 * * *" # Runs every 6 hours at 45 minutes past the hour
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test: [performance]
size: [200-250]
env: [dev, testnet-staging]
cache-data: [false]
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
with:
cache-data: ${{ matrix.cache-data }}
test-name: ${{ matrix.test }}-${{ matrix.size }}
env: ${{ matrix.env }}
- name: Run tests ${{ matrix.size }}
run: yarn test ${{ matrix.test }} --no-fail --log Warn --file --env ${{ matrix.env }} --size ${{ matrix.size }} --max-retry 3
- name: Cleanup and upload artifacts
if: always()
uses: ./.github/actions/xmtp-test-cleanup
with:
save-to-cache: ${{ matrix.cache-data }}
test-name: ${{ matrix.test }}-${{ matrix.size }}
env: ${{ matrix.env }}
- name: Send Slack notification on failure
if: failure() || cancelled()
uses: ./.github/actions/slack-notification
with:
workflow-name: "Performance Large (${{ matrix.test }}, ${{ matrix.env }}, ${{ matrix.size }})"
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}