Skip to content

Commit 80f85ff

Browse files
committed
Generate the project
1 parent e58c287 commit 80f85ff

File tree

1 file changed

+40
-26
lines changed

1 file changed

+40
-26
lines changed

.github/workflows/performance-metrics.yml

Lines changed: 40 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,32 @@ jobs:
3030
echo "retail_app_template_version=$version" >> "$GITHUB_ENV"
3131
3232
# TODO: use the other generate_app action that has more flexibility
33+
# - name: Generate Retail App Private Client
34+
# uses: ./.github/actions/e2e_generate_app
35+
# with:
36+
# PROJECT_KEY: 'retail-app-private-client'
37+
# TEMPLATE_VERSION: ${{ env.retail_app_template_version }}
38+
3339
- name: Generate Retail App Private Client
34-
uses: ./.github/actions/e2e_generate_app
40+
uses: ./.github/actions/generate_app
3541
with:
36-
PROJECT_KEY: 'retail-app-private-client'
37-
TEMPLATE_VERSION: ${{ env.retail_app_template_version }}
42+
use_extensibility: false
43+
is_private_client: true
44+
setup_hybrid: false
45+
project_dir: 'build'
46+
project_id: 'FOOOOOOOOOOOOOOOOOO'
47+
org_id: 'f_ecom_tbbn_prd'
48+
short_code: 'performance-001'
49+
client_id: '9629ef22-f8b8-4987-90ac-b815be3940c8'
50+
site_id: 'SiteNemesis'
51+
instance_url: 'zzrf-001.dx.commercecloud.salesforce.com' # this doesn't matter because the OCAPI proxy in Runtime Admin will take precedence
3852

3953
# TODO: is this step still needed? I think it expects a project key
40-
- name: Validate Generated Retail App Private Client
41-
uses: ./.github/actions/e2e_validate_generated_app
42-
with:
43-
PROJECT_KEY: 'retail-app-private-client'
44-
TEMPLATE_VERSION: ${{ env.retail_app_template_version }}
54+
# - name: Validate Generated Retail App Private Client
55+
# uses: ./.github/actions/e2e_validate_generated_app
56+
# with:
57+
# PROJECT_KEY: 'retail-app-private-client'
58+
# TEMPLATE_VERSION: ${{ env.retail_app_template_version }}
4559

4660
- name: Create MRT credentials file
4761
uses: './.github/actions/create_mrt'
@@ -65,21 +79,21 @@ jobs:
6579
# run: npm run test:performance-metrics # TODO: Replace with whatever command is used for performance metrics.
6680

6781
# Optionally send Slack notifications for performance metrics.
68-
notify-slack-performance-metrics:
69-
needs: [run-performance-metrics] # Makes sure the performance metrics job has completed before running this job.
70-
if: ${{ always() }} # Runs this job even if the performance metrics job fails.
71-
runs-on: ubuntu-latest
72-
steps:
73-
- name: Send GitHub Action data to Slack workflow (Generated)
74-
id: slack-success
75-
if: ${{ github.event_name == 'schedule' && needs.run-performance-metrics.result == 'success' }}
76-
uses: slackapi/slack-github-action@v1.23.0
77-
with:
78-
payload: |
79-
{
80-
"message": "✅ All PWA Kit Private Client Performance Metrics tests passed!"
81-
}
82-
env:
83-
# TODO: Create a new slack webhook from the performance metrics slack channel.
84-
# Add the webhook url to the repository secrets with as SLACK_PERFORMANCE_METRICS_WEBHOOK_URL key.
85-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PERFORMANCE_METRICS_WEBHOOK_URL }}
82+
# notify-slack-performance-metrics:
83+
# needs: [run-performance-metrics] # Makes sure the performance metrics job has completed before running this job.
84+
# if: ${{ always() }} # Runs this job even if the performance metrics job fails.
85+
# runs-on: ubuntu-latest
86+
# steps:
87+
# - name: Send GitHub Action data to Slack workflow (Generated)
88+
# id: slack-success
89+
# if: ${{ github.event_name == 'schedule' && needs.run-performance-metrics.result == 'success' }}
90+
# uses: slackapi/slack-github-action@v1.23.0
91+
# with:
92+
# payload: |
93+
# {
94+
# "message": "✅ All PWA Kit Private Client Performance Metrics tests passed!"
95+
# }
96+
# env:
97+
# # TODO: Create a new slack webhook from the performance metrics slack channel.
98+
# # Add the webhook url to the repository secrets with as SLACK_PERFORMANCE_METRICS_WEBHOOK_URL key.
99+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PERFORMANCE_METRICS_WEBHOOK_URL }}

0 commit comments

Comments
 (0)