Skip to content

Commit

Permalink
feat(github, quantic): create manual github workflow for Quantic E2E …
Browse files Browse the repository at this point in the history
…test setup (#4750)

[SFINT-5842](https://coveord.atlassian.net/browse/SFINT-5842)

## In this PR:

- We added a github workflow that can be triggered manually to
essentially create a scratch org, deploy the project and the Quantic
examples community and the e2e setup. When the workflow runs, it
generates the URL for the community with the setup done. This URL can be
used to test or write test locally.
- This allows QA for example to easily do the setup to write playwright
e2e tests and test components.

You can see the result of a successful run
[here](https://github.com/coveo/ui-kit/actions/runs/12166819370?pr=4750)


### DEMO SUMMARY:
<img width="1214" alt="image"
src="https://github.com/user-attachments/assets/4f69d901-4828-464d-8356-dd53f00b37a8">





[SFINT-5842]:
https://coveord.atlassian.net/browse/SFINT-5842?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
  • Loading branch information
SimonMilord authored Dec 4, 2024
1 parent 74cb96a commit 6004fb8
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/setup-quantic-examples-community.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Setup Quantic Examples Community

on:
workflow_dispatch:

workflow_call:
secrets:
SFDX_AUTH_CLIENT_ID:
required: true
SFDX_AUTH_JWT_KEY:
required: true

defaults:
run:
shell: bash

jobs:
e2e-quantic-setup:
name: 'Setup Quantic Examples Community'
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit

- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4

- name: Project setup
uses: ./.github/actions/setup

- name: Setup Salesforce CLI
uses: ./.github/actions/setup-sfdx

- name: Setup Quantic E2E
id: setup
uses: ./.github/actions/e2e-quantic-setup
with:
clientid: ${{ secrets.SFDX_AUTH_CLIENT_ID }}
jwtkey: ${{ secrets.SFDX_AUTH_JWT_KEY }}

- name: Read .env file and print Community URL
run: |
source packages/quantic/.env
echo "The Quantic Examples Community URL (LWS enabled) is $Quantic__LWS_enabled_URL"
echo "The Quantic Examples Community URL (LWS disabled) is $Quantic__LWS_disabled_URL"
echo "### :rocket:Access Quantic Examples Community (LWS enabled) here --> $Quantic__LWS_enabled_URL" >> $GITHUB_STEP_SUMMARY
echo "### :rocket:Access Quantic Examples Community (LWS disabled) here --> $Quantic__LWS_disabled_URL" >> $GITHUB_STEP_SUMMARY

0 comments on commit 6004fb8

Please sign in to comment.