Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[test] Run snapshot tests on the a11y tree #20019

Merged
merged 6 commits into from
Mar 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/scripts.yml
Original file line number Diff line number Diff line change
@@ -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!'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 }}"}'