From 4b86fcfb1bb19960ec288a973f34e5b384deabc7 Mon Sep 17 00:00:00 2001 From: Ashley Harrison Date: Thu, 12 Mar 2026 13:43:26 +0000 Subject: [PATCH] Storybook: Add gate step for storybook a11y tests (#120164) add gate step for storybook a11y tests --- .github/workflows/storybook-a11y.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/storybook-a11y.yml b/.github/workflows/storybook-a11y.yml index 3f62c4325c7..75da73a7c71 100644 --- a/.github/workflows/storybook-a11y.yml +++ b/.github/workflows/storybook-a11y.yml @@ -65,3 +65,22 @@ jobs: env: LANG: en_US run: npx wait-on --timeout 120000 http://localhost:9001 && yarn test:storybook + + storybook-a11y-result: + name: "Storybook a11y tests" + runs-on: ubuntu-x64-small + if: always() + needs: + - detect-changes + - test-storybook-a11y + steps: + - name: No frontend changes detected + if: needs.detect-changes.outputs.changed != 'true' + run: echo "No frontend changes detected, skipping storybook a11y tests" + - name: Check test suites + if: needs.detect-changes.outputs.changed == 'true' + uses: grafana/grafana/.github/actions/check-jobs@main + with: + needs: ${{ toJson(needs) }} + failure-message: "One or more storybook a11y test suites have failed" + success-message: "All storybook a11y test suites completed successfully"