diff --git a/.github/workflows/discoverability.yml b/.github/workflows/discoverability.yml new file mode 100644 index 00000000000..20ac7c367ee --- /dev/null +++ b/.github/workflows/discoverability.yml @@ -0,0 +1,20 @@ +name: Discoverability + +on: pull_request + +jobs: + discoverability-action: + name: Discoverability action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + + - name: yarn + run: yarn + + - name: Add a comment with known areas to test + uses: shopify/discoverability-action@beta-1 + with: + codebaseGlob: src/**/*.tsx + ignoreGlob: src/**/*.test.tsx + githubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/UNRELEASED.md b/UNRELEASED.md index 8bc863496dc..c2c510c2268 100644 --- a/UNRELEASED.md +++ b/UNRELEASED.md @@ -35,3 +35,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f - Added `MediaQueryProvider` to ease the use of media queries and reduce duplication ([#2117](https://github.com/Shopify/polaris-react/pull/2117)) ### Deprecations + +### Development workflow + +- Added a Github action, [discoverability-action](https://github.com/Shopify/discoverability-action), that runs `yarn splash` on PR diffs and leaves a comment with the output ([#2208](https://github.com/Shopify/polaris-react/pull/2208))