-
Notifications
You must be signed in to change notification settings - Fork 212
47 lines (40 loc) · 1.57 KB
/
performance-metrics.yml
File metadata and controls
47 lines (40 loc) · 1.57 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
name: SalesforceCommerceCloud/pwa-kit/performance-metrics
on:
workflow_dispatch: # Allows you to manually run the workflow on any branch.
schedule:
# Run every day at 7pm (PST) - cron uses UTC times.
# We want to run it before the performance tests are scheduled to run.
# Runs on the default branch.
- cron: '0 3 * * *'
jobs:
run-performance-metrics:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install Monorepo Dependencies
run: |-
npm ci
- name: Generate App
id: generate_app
uses: ./.github/actions/e2e_generate_app
with:
PROJECT_KEY: "retail-react-app-performance-tests"
- name: Create MRT credentials file
uses: './.github/actions/create_mrt'
with:
mobify_user: ${{ secrets.MOBIFY_STG_CLIENT_USER }}
mobify_api_key: ${{ secrets.MOBIFY_STG_CLIENT_API_KEY }}
- name: Push Bundle to MRT
uses: './.github/actions/push_to_mrt'
with:
CWD: '${{ steps.generate_app.outputs.project_path }}'
PROJECT: q4-pwa-perf-develop
TARGET: production
CLOUD_ORIGIN: ${{ vars.MRT_STG_CLOUD_ORIGIN }}
FLAGS: --wait