Skip to content

Commit

Permalink
Merge branch 'master' into KIT-3660
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprudhomme authored Jan 16, 2025
2 parents 2734508 + 58a2824 commit db6acfb
Show file tree
Hide file tree
Showing 734 changed files with 70,138 additions and 55,055 deletions.
48 changes: 46 additions & 2 deletions .deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{
"id": "deploy-bueno-patch-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/bueno/v$[BUENO_PATCH_VERSION]",
"source": "packages/bueno/dist/browser",
Expand All @@ -29,6 +30,7 @@
{
"id": "deploy-bueno-minor-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/bueno/v$[BUENO_MINOR_VERSION]",
"source": "packages/bueno/dist/browser",
Expand All @@ -40,6 +42,7 @@
{
"id": "deploy-bueno-major-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/bueno/v$[BUENO_MAJOR_VERSION]",
"source": "packages/bueno/dist/browser",
Expand All @@ -48,9 +51,22 @@
}
}
},
{
"id": "deploy-bueno-nightly-to-s3-version",
"s3": {
"disabled": $[IS_NOT_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/bueno/v$[BUENO_MAJOR_VERSION]-nightly",
"source": "packages/bueno/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-headless-patch-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_PATCH_VERSION]",
"source": "packages/headless/dist/browser",
Expand All @@ -62,6 +78,7 @@
{
"id": "deploy-headless-minor-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_MINOR_VERSION]",
"source": "packages/headless/dist/browser",
Expand All @@ -73,6 +90,7 @@
{
"id": "deploy-headless-major-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_MAJOR_VERSION]",
"source": "packages/headless/dist/browser",
Expand All @@ -81,9 +99,22 @@
}
}
},
{
"id": "deploy-headless-nightly-to-s3-version",
"s3": {
"disabled": $[IS_NOT_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/headless/v$[HEADLESS_MAJOR_VERSION]-nightly",
"source": "packages/headless/dist/browser",
"parameters": {
"acl": "public-read"
}
}
},
{
"id": "deploy-atomic-patch-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_PATCH_VERSION]",
"source": "packages/atomic/dist/atomic",
Expand All @@ -95,6 +126,7 @@
{
"id": "deploy-atomic-minor-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MINOR_VERSION]",
"source": "packages/atomic/dist/atomic",
Expand All @@ -106,6 +138,7 @@
{
"id": "deploy-atomic-major-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MAJOR_VERSION]",
"source": "packages/atomic/dist/atomic",
Expand All @@ -117,6 +150,7 @@
{
"id": "deploy-atomic-minor-storybook-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic/v$[ATOMIC_MINOR_VERSION]/storybook",
"source": "packages/atomic/dist-storybook",
Expand All @@ -128,6 +162,7 @@
{
"id": "deploy-atomic-react-patch-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic-react/v$[ATOMIC_REACT_PATCH_VERSION]",
"source": "packages/atomic-react/dist",
Expand All @@ -139,6 +174,7 @@
{
"id": "deploy-atomic-react-minor-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic-react/v$[ATOMIC_REACT_MINOR_VERSION]",
"source": "packages/atomic-react/dist",
Expand All @@ -150,6 +186,7 @@
{
"id": "deploy-atomic-react-major-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic-react/v$[ATOMIC_REACT_MAJOR_VERSION]",
"source": "packages/atomic-react/dist",
Expand All @@ -161,6 +198,7 @@
{
"id": "deploy-atomic-hosted-page-patch-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic-hosted-page/v$[ATOMIC_HOSTED_PAGE_PATCH_VERSION]",
"source": "packages/atomic-hosted-page/dist",
Expand All @@ -172,6 +210,7 @@
{
"id": "deploy-atomic-hosted-page-minor-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic-hosted-page/v$[ATOMIC_HOSTED_PAGE_MINOR_VERSION]",
"source": "packages/atomic-hosted-page/dist",
Expand All @@ -183,6 +222,7 @@
{
"id": "deploy-atomic-hosted-page-major-to-s3-version",
"s3": {
"disabled": $[IS_NIGHTLY],
"bucket": "{terraform.infra.infra.bucket_binaries}",
"directory": "proda/StaticCDN/atomic-hosted-page/v$[ATOMIC_HOSTED_PAGE_MAJOR_VERSION]",
"source": "packages/atomic-hosted-page/dist",
Expand Down Expand Up @@ -210,7 +250,11 @@
"extra_parameters": {
"atomic-major": "$[ATOMIC_MAJOR_VERSION]",
"atomic-minor": "$[ATOMIC_MINOR_VERSION]",
"atomic-patch": "$[ATOMIC_PATCH_VERSION]"
"atomic-patch": "$[ATOMIC_PATCH_VERSION]",
"headless-major": "$[HEADLESS_MAJOR_VERSION]",
"headless-minor": "$[HEADLESS_MINOR_VERSION]",
"headless-patch": "$[HEADLESS_PATCH_VERSION]",
"is-nightly": "$[IS_NIGHTLY]"
}
}
},
Expand All @@ -222,7 +266,7 @@
"workflow_reference": "main",
"workflow_repository": "coveo-platform/ui-kit-cd",
"prd": {
"disabled": false
"disabled": $[IS_NIGHTLY]
},
"extra_parameters": {
"run-id": "$[GITHUB_RUN_ID]"
Expand Down
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ module.exports = {
'!.storybook',
'scripts/deploy/execute-deployment-pipeline.mjs',
'build',
'.deployment.config.json',
'packages/atomic-angular/scripts/build-lit.mjs',
'packages/atomic-react/scripts/build-lit.mjs',
],
env: {
jest: true,
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
with:
load-cache: 'false'
cache-suffix: ${{ inputs.cache-suffix }}
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
id: nx-cache
with:
path: .nx/cache
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/cdn-checks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Runs CDN checks'
runs:
using: composite
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: ./.github/actions/setup
with:
cache-suffix: 'cdn'
Expand Down
22 changes: 0 additions & 22 deletions .github/actions/create-deployment-package/action.yml

This file was deleted.

27 changes: 11 additions & 16 deletions .github/actions/e2e-atomic-angular/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Atomic Angular E2E tests'
description: 'Runs Cypress tests for Atomic Angular'
name: 'Playwright Atomic Angular'
description: 'Run Playwright tests for Atomic Angular'
inputs:
github-token:
description: The GitHub token for accurately detecting a build vs a re-run build
Expand All @@ -8,21 +8,16 @@ inputs:
runs:
using: composite
steps:
- run: npx cypress install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: packages/samples/angular
shell: bash
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx -w @coveo/atomic-angular-samples cypress-repeat run -n 3 --until-passes --rerun-failed-only --'
start: npx nx run atomic-angular-samples:dev
wait-on: 'http://localhost:4200'
# Wait up to 10min for the Angular Server to spool up.
wait-on-timeout: 600000
install: false
record: false
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- name: Run Playwright tests
run: npx playwright test
working-directory: packages/samples/angular
shell: bash
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: failure()
with:
name: angular-screenshots
path: packages/samples/angular/cypress/screenshots
path: packages/samples/angular/playwright-report/
4 changes: 2 additions & 2 deletions .github/actions/e2e-atomic-insight-panel/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ runs:
browser: chrome
command-prefix: 'npx -w @coveo/atomic cypress-repeat run -n 3 --until-passes --rerun-failed-only --'
config-file: cypress-insight-panel.config.mjs
start: npm start -w @coveo/atomic
wait-on: 'http://localhost:3333/ping'
start: npx nx web:dev atomic
wait-on: 'http://localhost:3333'
wait-on-timeout: 600000
install: false
record: false
2 changes: 1 addition & 1 deletion .github/actions/e2e-atomic-next/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: failure()
with:
name: next-screenshots
Expand Down
26 changes: 11 additions & 15 deletions .github/actions/e2e-atomic-react/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Atomic React E2E tests'
description: 'Runs Cypress tests for Atomic React'
name: 'Playwright Atomic React'
description: 'Runs Playwright tests for Atomic React'
inputs:
github-token:
description: The GitHub token for accurately detecting a build vs a re-run build
Expand All @@ -8,20 +8,16 @@ inputs:
runs:
using: composite
steps:
- run: npx cypress install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
working-directory: packages/samples/angular
shell: bash
- uses: cypress-io/github-action@v5
name: Run Cypress
with:
browser: chrome
command-prefix: 'npx -w @coveo/atomic-react-samples cypress-repeat run -n 3 --until-passes --rerun-failed-only --'
start: npx nx run atomic-react-samples:dev
wait-on: 'http://localhost:3000'
wait-on-timeout: 600000
install: false
record: false
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- name: Run Playwright tests
run: npx playwright test
working-directory: packages/samples/atomic-react
shell: bash
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: failure()
with:
name: react-screenshots
path: packages/samples/atomic-react/cypress/screenshots
path: packages/samples/atomic-react/playwright-report/
6 changes: 3 additions & 3 deletions .github/actions/e2e-atomic-screenshots/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ runs:
browser: chrome
command-prefix: 'npx -w @coveo/atomic cypress-repeat run -n 3 --until-passes --rerun-failed-only --'
config-file: cypress-screenshots.config.mjs
start: npm start -w @coveo/atomic
wait-on: 'http://localhost:3333/ping'
start: npx nx web:dev atomic
wait-on: 'http://localhost:3333'
wait-on-timeout: 600000
install: false
record: false
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: cancelled() || failure() || success()
with:
name: result-lists-screenshots
Expand Down
6 changes: 3 additions & 3 deletions .github/actions/e2e-atomic/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ runs:
browser: chrome
command-prefix: 'npx -w @coveo/atomic cypress-repeat run -n 3 --until-passes --rerun-failed-only --'
spec: ${{ inputs.spec }}
start: npm start -w @coveo/atomic
wait-on: 'http://localhost:3333/ping'
start: npx nx web:dev atomic
wait-on: 'http://localhost:3333'
wait-on-timeout: 600000
install: false
record: false
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
SPLIT: ${{ inputs.SPLIT }}
SPLIT_INDEX: ${{ inputs.SPLIT_INDEX }}
- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: failure()
with:
name: atomic-e2e-screenshots-${{ inputs.spec }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-headless-ssr-app-dev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: failure()
with:
name: ssr-app-dev-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-headless-ssr-app-prod/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: failure()
with:
name: ssr-app-prd-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-headless-ssr-pages-dev/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: failure()
with:
name: ssr-page-dev-screenshots
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/e2e-headless-ssr-pages-prod/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
install: false
record: false

- uses: actions/upload-artifact@ff15f0306b3f739f7b6fd43fb5d26cd321bd4de5 # v3
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
if: failure()
with:
name: ssr-pages-prd-screenshots
Expand Down
Loading

0 comments on commit db6acfb

Please sign in to comment.