From ee127ada5d5fb96a4d0884410bcd134a52af17ee Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sat, 7 Mar 2020 22:50:30 +0100 Subject: [PATCH] [test] Run snapshot tests on the a11y tree (#20019) --- .github/workflows/scripts.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/scripts.yml diff --git a/.github/workflows/scripts.yml b/.github/workflows/scripts.yml new file mode 100644 index 00000000000000..59bf96483d4997 --- /dev/null +++ b/.github/workflows/scripts.yml @@ -0,0 +1,23 @@ +# workflow for communication with eps1lon/mui-scripts-incubator +# These scripts are experimental. We have a very "dumb" workflow here that is only responsible for triggering +# actions in eps1lon/mui-scripts-incubator. Since those actions are experimental they'll likely break +# and we don't want to disrupt the normal repo workflow. +name: experimental +on: status +jobs: + build: + if: github.event.state == 'success' && github.event.sender.login == 'netlify[bot]' && github.event.description == 'Deploy preview ready!' + runs-on: ubuntu-latest + steps: + - name: Find PR associated with this push + uses: jwalton/gh-find-current-pr@v1 + id: findPr + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + - name: Run mui-scripts a11y-snapshot + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.MUI_SCRIPTS_INCUBATOR }} + repository: eps1lon/mui-scripts-incubator + event-type: a11y-snapshot + client-payload: '{ "pr_number": "${{ steps.findPr.outputs.pr }}"}'