Skip to content

introduce VRT test failures #14

introduce VRT test failures

introduce VRT test failures #14

Workflow file for this run

name: 'CI checks'
on:
pull_request:
branches:
- main
jobs:
ui-changes:
runs-on: ubuntu-latest
name: ui-changes
outputs:
any_modified: ${{ steps.ui-changes.outputs.any_modified }}
all_modified_files_count: ${{ steps.ui-changes.outputs.all_modified_files_count }}
all_modified_files: ${{ steps.ui-changes.outputs.all_modified_files }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
write_output_files: true
files: |
src/**
.storybook/**
- name: List all changed files
env:
ALL_MODIFIED_FILES: ${{ steps.ui-changes.outputs.all_modified_files }}
ALL_MODIFIED_FILES_COUNT: ${{ steps.ui-changes.outputs.all_modified_files_count }}
ANY_MODIFIED: ${{ steps.ui-changes.outputs.any_modified }}
run: |
echo "Found ${#ALL_MODIFIED_FILES[@]} changed UI file(s), ${{ steps.ui-changes.outputs.all_modified_files_count }}, ${{ steps.ui-changes.outputs.any_modified }}"
chromatic:
name: Run Chromatic
needs: [ui-changes]
if: ${{ needs.ui-changes.outputs.any_modified == 'true' }}
uses: ./.github/workflows/chromatic.yml
secrets: inherit