Skip to content

Merge branch 'develop' into bug/4641-combobox-keyboard-focus #4374

Merge branch 'develop' into bug/4641-combobox-keyboard-focus

Merge branch 'develop' into bug/4641-combobox-keyboard-focus #4374

Workflow file for this run

name: "Visual Regression Tests"
on:
push:
branches-ignore:
- "gh-pages"
permissions:
contents: read
jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Kirby setup
uses: ./.github/actions/kirby-setup
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@afb73a62d26e41464e9254689e1fd6122ee683c1 # v5.0.1
with:
main-branch-name: develop
- name: Build storybook
run: npx nx affected -t build-storybook
- name: Check if storybook dist folders exist
id: check_storybook_folders
run: |
if [ -d "$GITHUB_WORKSPACE/dist/storybook/designsystem" ]; then
echo "designsystem=true" >> $GITHUB_OUTPUT
fi
if [ -d "$GITHUB_WORKSPACE/dist/storybook/extensions/angular" ]; then
echo "extensions_angular=true" >> $GITHUB_OUTPUT
fi
- name: Publish Designsystem to Chromatic
uses: chromaui/action@7aca53e7aa87489020a97f633c1e7e82c12e5973 # 17.0.0
# If designsystem storybook dist has been built, it means project might have been affected and should be tested
if: steps.check_storybook_folders.outputs.designsystem == 'true'
with:
projectToken: ${{ secrets.DESIGNSYSTEM_CHROMATIC_PROJECT_TOKEN }}
workingDir: libs/designsystem
storybookBuildDir: ${{ github.workspace }}/dist/storybook/designsystem
autoAcceptChanges: "develop"
exitOnceUploaded: true
- name: Publish Extensions to Chromatic
# If extensions storybook dist has been built, it means project might have been affected and should be tested
if: steps.check_storybook_folders.outputs.extensions_angular == 'true'
uses: chromaui/action@7aca53e7aa87489020a97f633c1e7e82c12e5973 # 17.0.0
with:
projectToken: ${{ secrets.EXTENSIONS_CHROMATIC_PROJECT_TOKEN }}
workingDir: libs/extensions/angular
storybookBuildDir: ${{ github.workspace }}/dist/storybook/extensions/angular
autoAcceptChanges: "develop"
exitOnceUploaded: true