Skip to content

LIVE

LIVE #11666

Workflow file for this run

name: LIVE
on:
schedule:
# Runs every 45 minutes
- cron: '*/30 * * * *'
workflow_dispatch: # Allows manual triggering
jobs:
live-service-tests:
name: Run Live Service Tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.4.0
- name: Set Node Version
uses: actions/setup-node@v4
with:
node-version: 22.4.0
cache: pnpm
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run Live Service Tests
run: npm exec -- vitest run live -u
- name: Notify on Failure
if: failure()
uses: slackapi/[email protected]
with:
payload: |
{
"icon_emoji": ":x:",
"username": "Live Service Monitor",
"channel": "#alerts",
"text": "Live service tests failed! Workflow *${{ github.workflow }}* on *${{ github.ref }}* (commit: ${{ github.sha }}) encountered errors. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run>"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}