From f8cdf1cb3d24a7c225a2d9ce2086578b76ee7f7e Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Sun, 13 Dec 2020 23:04:49 -0500 Subject: [PATCH] Infrastructure: Add CI to auto-generate examples/index.html when a PR would change it (pull #1524) Resolves #1079: * chore: GitHub Action to check examples index.html * fix: sync examples/index.html * chore: run lint-staged for reference-table files Co-authored-by: Matt King --- .github/workflows/examples.yml | 33 ++++++++++++++++++++++++ examples/index.html | 46 +++++++++++++++++----------------- package.json | 5 ++++ 3 files changed, 61 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/examples.yml diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml new file mode 100644 index 0000000000..58fe12d5cf --- /dev/null +++ b/.github/workflows/examples.yml @@ -0,0 +1,33 @@ +name: Check examples/index.html + +on: + push: + branches-ignore: + - "dependabot/**" + paths: + - "package*.json" + - ".github/workflows/examples.yml" + - "examples/**" + - "scripts/reference-tables.*" + pull_request: + paths: + - "package*.json" + - ".github/workflows/examples.yml" + - "examples/**" + - "scripts/reference-tables.*" + +jobs: + examples: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: npm ci + + - name: Generate examples/index.html + run: npm run reference-tables + + - name: Ensure no git changes + run: git diff --exit-code diff --git a/examples/index.html b/examples/index.html index 4e78f6c016..139b6430f7 100644 --- a/examples/index.html +++ b/examples/index.html @@ -131,7 +131,7 @@

Examples by Role

group @@ -416,8 +416,8 @@

Examples By Properties and States

  • Checkbox (Two State)
  • Checkbox (Mixed-State)
  • Editor Menubar
  • -
  • Radio Group Using Roving tabindex
  • -
  • Radio Group Using aria-activedescendant
  • +
  • Radio Group Using aria-activedescendant
  • +
  • Radio Group Using Roving tabindex
  • Toolbar
  • @@ -431,7 +431,7 @@

    Examples By Properties and States