Skip to content

debug: perfomance setup #3409

debug: perfomance setup

debug: perfomance setup #3409

Workflow file for this run

name: Test widgets and wallets integration
on:
pull_request:
workflow_dispatch:
inputs:
notify:
description: 'Notify about test results to the discord channel'
required: false
default: false
type: boolean
schedule:
- cron: '0 */6 * * *'
jobs:
test:
name: Testing
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.15'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Run lint
run: yarn lint
- name: Build Components
run: yarn build
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Start monitoring memory usage
run: |
nohup sh -c "vmstat 1 > vmstat.log &" &
- name: Run wallets tests
run: xvfb-run --auto-servernum -- yarn test:widgets
working-directory: wallets-testing
env:
RPC_URL: ${{ secrets.RPC_URL }}
WALLET_SECRET_PHRASE: ${{ secrets.WALLET_SECRET_PHRASE }}
WALLET_PASSWORD: ${{ secrets.WALLET_PASSWORD }}
NODE_OPTIONS: --max-old-space-size=4096
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: playwright-report
path: wallets-testing/playwright-report/
retention-days: 30
- uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: memory-usage-log
path: vmstat.log
- name: Set embeds
if: ${{ always() }}
working-directory: wallets-testing
run: |
EMBEDS=$(cat embeds.json | jq -c .embeds)
echo "EMBEDS=$EMBEDS" >> $GITHUB_ENV
- name: Discord notification when fails (include mentions)
if: ${{ failure() && (github.event_name == 'schedule' || inputs.notify) }}
uses: lidofinance/[email protected]
with:
args: "<@&1118836223495131167> please take a look at the test results"
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: ${{ env.EMBEDS }}
- name: Discord notification when success
if: ${{ success() && (github.event_name == 'schedule' || inputs.notify) }}
uses: lidofinance/[email protected]
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_EMBEDS: ${{ env.EMBEDS }}