Rename CI New UI workflow to CI UI (#22030)
Renames the `CI New UI` workflow to `CI UI`, dropping the "new ui" terminology everywhere it appeared. - Renamed `.github/workflows/ci-new-ui.yaml` → `ci-ui.yaml` - Updated the workflow `name`, job names (`ui-task`, `ui-sb-build`, `ui-sb-test`, `ci-ui-status-check`), and internal `needs`/`if` references - Updated `visual-regression-dispatch.yaml` which keys off the workflow name (`CI UI`) Note: the required status check in branch protection settings (workflow name / `ci-ui-status-check`) lives in repo settings and will need updating by an admin so PRs don't wait on the old check name. <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/twentyhq/twenty/pull/22030?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: CI New UI
|
name: CI UI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
yarn.lock
|
yarn.lock
|
||||||
packages/twenty-ui/**
|
packages/twenty-ui/**
|
||||||
packages/twenty-shared/**
|
packages/twenty-shared/**
|
||||||
new-ui-task:
|
ui-task:
|
||||||
needs: changed-files-check
|
needs: changed-files-check
|
||||||
if: needs.changed-files-check.outputs.any_changed == 'true'
|
if: needs.changed-files-check.outputs.any_changed == 'true'
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
uses: ./.github/actions/yarn-install
|
uses: ./.github/actions/yarn-install
|
||||||
- name: Run ${{ matrix.task }}
|
- name: Run ${{ matrix.task }}
|
||||||
run: npx nx ${{ matrix.task }} twenty-ui
|
run: npx nx ${{ matrix.task }} twenty-ui
|
||||||
new-ui-sb-build:
|
ui-sb-build:
|
||||||
needs: changed-files-check
|
needs: changed-files-check
|
||||||
if: >-
|
if: >-
|
||||||
always() &&
|
always() &&
|
||||||
@@ -62,11 +62,11 @@ jobs:
|
|||||||
name: storybook-twenty-ui
|
name: storybook-twenty-ui
|
||||||
path: packages/twenty-ui/storybook-static
|
path: packages/twenty-ui/storybook-static
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
new-ui-sb-test:
|
ui-sb-test:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: new-ui-sb-build
|
needs: ui-sb-build
|
||||||
if: always() && needs.new-ui-sb-build.result == 'success'
|
if: always() && needs.ui-sb-build.result == 'success'
|
||||||
steps:
|
steps:
|
||||||
- name: Fetch custom Github Actions and base branch history
|
- name: Fetch custom Github Actions and base branch history
|
||||||
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
|
||||||
@@ -94,11 +94,11 @@ jobs:
|
|||||||
name: argos-screenshots-twenty-ui
|
name: argos-screenshots-twenty-ui
|
||||||
path: packages/twenty-ui/screenshots
|
path: packages/twenty-ui/screenshots
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
ci-new-ui-status-check:
|
ci-ui-status-check:
|
||||||
if: always() && !cancelled()
|
if: always() && !cancelled()
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [changed-files-check, new-ui-task, new-ui-sb-build, new-ui-sb-test]
|
needs: [changed-files-check, ui-task, ui-sb-build, ui-sb-test]
|
||||||
steps:
|
steps:
|
||||||
- name: Fail job if any needs failed
|
- name: Fail job if any needs failed
|
||||||
if: contains(needs.*.result, 'failure')
|
if: contains(needs.*.result, 'failure')
|
||||||
@@ -10,7 +10,7 @@ name: Visual Regression Dispatch
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
workflows: ['CI New UI', 'CI Front']
|
workflows: ['CI UI', 'CI Front']
|
||||||
types: [completed]
|
types: [completed]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
const name = context.payload.workflow_run.name;
|
const name = context.payload.workflow_run.name;
|
||||||
const projectByWorkflow = {
|
const projectByWorkflow = {
|
||||||
'CI New UI': 'twenty-ui',
|
'CI UI': 'twenty-ui',
|
||||||
'CI Front': 'twenty-front',
|
'CI Front': 'twenty-front',
|
||||||
};
|
};
|
||||||
const project = projectByWorkflow[name] ?? 'twenty-front';
|
const project = projectByWorkflow[name] ?? 'twenty-front';
|
||||||
|
|||||||
Reference in New Issue
Block a user