From f50d83a169ba2f49d7e53de6ec557c1752e07bfb Mon Sep 17 00:00:00 2001 From: Daniel Mundra Date: Mon, 3 Jun 2024 10:11:44 -0700 Subject: [PATCH] GitHub workflow updates (#757) * Delete .github/workflows/pre-commit.yml * Update README.md * Removed a11ywatch and added auto update action. Updated readme. --- .github/workflows/README.md | 12 ++++-------- .github/workflows/a11ywatch.yml | 31 ------------------------------- .github/workflows/auto-update.yml | 14 ++++++++++++++ .github/workflows/pre-commit.yml | 25 ------------------------- 4 files changed, 18 insertions(+), 64 deletions(-) delete mode 100644 .github/workflows/a11ywatch.yml create mode 100644 .github/workflows/auto-update.yml delete mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/README.md b/.github/workflows/README.md index 1da92512..a04b68a8 100644 --- a/.github/workflows/README.md +++ b/.github/workflows/README.md @@ -16,10 +16,6 @@ The pa11y-ci commands can also be run locally to generate the same test results: Run remark-lint with reviewdog on pull requests to check for readibility and other text checks. -## pre-commit.yml - -Run pre-commit hooks to clean up site based on configurations in .pre-commit-config.yaml include searching and replacing smart quotes defined in .pre-commit-search-and-replace.yaml. - ## backlog-issues.yml Automatically place new/reopened issues in to the project board. @@ -34,10 +30,6 @@ This pipeline requires a personal access token or organizational one with the ke Run Cypress tests with Axe to check accessibility of the site with axe by interacting with the menu, search, and with different screen sizes. -## a11ywatch.yml - -Run a11ywatch GitHub action to check accessibility of the site. - ## accessibility-alt-text-bot.yml This action reminds users to add a meaningful alternative text to their images. @@ -46,6 +38,10 @@ This action reminds users to add a meaningful alternative text to their images. This action checks content links for issues using https://github.com/gjtorikian/html-proofer. +## auto-update.yml + +Updating branch that is configured to auto-merge. + # References * https://github.com/pa11y/pa11y diff --git a/.github/workflows/a11ywatch.yml b/.github/workflows/a11ywatch.yml deleted file mode 100644 index 61c0eae0..00000000 --- a/.github/workflows/a11ywatch.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: a11ywatch - -on: [pull_request] - -jobs: - build: - name: Building site and running a11ywatch - runs-on: ubuntu-latest - - steps: - - name: Checkout source. - uses: actions/checkout@v4 - - - name: Install jekyll site dependencies. - uses: ruby/setup-ruby@v1 - with: - ruby-version: 3.3 - bundler-cache: true - - - name: Install npm dependencies. - run: npm ci - - - name: Start up jekyll server. - run: bundle exec jekyll serve --detach -c _config.yml,_config_local.yml - - - uses: a11ywatch/github-action@v2.1.10 - with: - WEBSITE_URL: http://localhost:4000 - SITE_WIDE: true - SITEMAP: true - LIST: true diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml new file mode 100644 index 00000000..ca8862f6 --- /dev/null +++ b/.github/workflows/auto-update.yml @@ -0,0 +1,14 @@ +name: Updating branch that is configured to auto-merge +on: + push: + branches: + - master + +jobs: + Auto: + name: Auto-update + runs-on: ubuntu-latest + steps: + - uses: tibdex/auto-update@v2 + with: + github_token: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml deleted file mode 100644 index 70177619..00000000 --- a/.github/workflows/pre-commit.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: pre-commit - -on: - pull_request: - -jobs: - pre-commit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - persist-credentials: false - - uses: actions/setup-python@v5 - # Skip checks that don't auto-fix issues initially. - - uses: pre-commit/action@v3.0.1 - env: - SKIP: remark,check-yaml,check-json,check-added-large-files - with: - token: ${{ secrets.GITHUB_TOKEN }} - # Final run without committing to ensure passes. - - uses: pre-commit/action@v3.0.1 - env: - # We skip checks that have their own actions. - SKIP: remark.