Skip to content

Commit 6004fb8

Browse files
authored
feat(github, quantic): create manual github workflow for Quantic E2E 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
1 parent 74cb96a commit 6004fb8

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Setup Quantic Examples Community
2+
3+
on:
4+
workflow_dispatch:
5+
6+
workflow_call:
7+
secrets:
8+
SFDX_AUTH_CLIENT_ID:
9+
required: true
10+
SFDX_AUTH_JWT_KEY:
11+
required: true
12+
13+
defaults:
14+
run:
15+
shell: bash
16+
17+
jobs:
18+
e2e-quantic-setup:
19+
name: 'Setup Quantic Examples Community'
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Harden Runner
23+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
24+
with:
25+
egress-policy: audit
26+
27+
- name: Checkout repository
28+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
29+
30+
- name: Project setup
31+
uses: ./.github/actions/setup
32+
33+
- name: Setup Salesforce CLI
34+
uses: ./.github/actions/setup-sfdx
35+
36+
- name: Setup Quantic E2E
37+
id: setup
38+
uses: ./.github/actions/e2e-quantic-setup
39+
with:
40+
clientid: ${{ secrets.SFDX_AUTH_CLIENT_ID }}
41+
jwtkey: ${{ secrets.SFDX_AUTH_JWT_KEY }}
42+
43+
- name: Read .env file and print Community URL
44+
run: |
45+
source packages/quantic/.env
46+
echo "The Quantic Examples Community URL (LWS enabled) is $Quantic__LWS_enabled_URL"
47+
echo "The Quantic Examples Community URL (LWS disabled) is $Quantic__LWS_disabled_URL"
48+
echo "### :rocket:Access Quantic Examples Community (LWS enabled) here --> $Quantic__LWS_enabled_URL" >> $GITHUB_STEP_SUMMARY
49+
echo "### :rocket:Access Quantic Examples Community (LWS disabled) here --> $Quantic__LWS_disabled_URL" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)