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

chore: release v5.0.0 #319

Closed
wants to merge 12 commits into from
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defaults: &defaults
working_directory: ~/axe-core-gems

orbs:
browser-tools: circleci/browser-tools@1.2.4
browser-tools: circleci/browser-tools@1.4.3
node: circleci/node@5.0.0

commands:
Expand Down
8 changes: 8 additions & 0 deletions .github/scripts/prepare_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

# Fail on first error.
set -e

releaseLevel="$1"

npx standard-version --release-as "$releaseLevel" --skip.commit=true --skip.tag=true
49 changes: 49 additions & 0 deletions .github/workflows/auto-major-minor-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Automatically create major/minor release every night
on:
pull_request
# schedule:
# # Run every night right before midnight
# - cron: '59 23 * * *'

jobs:
create_major_minor_release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0

- id: update
uses: dequelabs/update-axe-core@v1
- id: type
run: |
releaseType=""
if [ "${{ steps.update.outputs.major_version_updated }}" == "true" ]; then
releaseType="major"
elif [ "${{ steps.update.outputs.minor_version_updated }}" == "true" ]; then
releaseType="minor"
elif [ "${{ steps.update.outputs.patch_version_updated }}" == "true" ]; then
echo "No major/minor updates available, cancelling.";
# gh run cancel ${{ github.run_id }};
# gh run watch ${{ github.run_id }};
else
echo "No updates available, cancelling.";
# gh run cancel ${{ github.run_id }};
# gh run watch ${{ github.run_id }};
fi
releaseType=major
echo "releaseType=$releaseType" >>"$GITHUB_OUTPUT"

- name: Create release
uses: dequelabs/axe-api-team-public/.github/actions/auto-major-minor-release-v1@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
project_token: ${{ secrets.GH_PROJECT_TOKEN }}
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
release-command: bash .github/scripts/prepare_release.sh ${{ steps.type.outputs.releaseType }}
release-branch: master
default-branch: develop
axe-version: ${{ steps.update.outputs.version }}
20 changes: 20 additions & 0 deletions .github/workflows/auto-patch-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Automatically create patch release every 2 weeks
on:
schedule:
# Run every Friday right before midnight
- cron: '59 23 * * 5'
jobs:
create_patch_release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Create release
uses: dequelabs/axe-api-team-public/.github/actions/auto-patch-release-v1@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
project_token: ${{ secrets.GH_PROJECT_TOKEN }}
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
odd_release: 'true'
release-command: bash .github/scripts/prepare_release.sh
release-branch: master
default-branch: develop
12 changes: 12 additions & 0 deletions .github/workflows/prepare_release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Fail on first error.
set -e

releaseLevel="$1"

oldVersion="$(node -pe 'require("./package.json").version')"
npx standard-version --release-as="$releaseLevel"
newVersion="$(node -pe 'require("./package.json").version')"

sed -i -e "s/ VERSION\\s*=\\s*\"$oldVersion\"/ VERSION = \"$newVersion\"/" version.rb
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [5.0.0](https://github.com/dequelabs/axe-core-gems/compare/v4.6.1...v5.0.0) (2023-08-09)


### Features

* Update axe-core to v4.7.0 ([#299](https://github.com/dequelabs/axe-core-gems/issues/299)) ([81ca285](https://github.com/dequelabs/axe-core-gems/commit/81ca285e2a8ebda7414b5d0543b732141ea6512d))
* update axe-core to v4.7.2 ([8cb96af](https://github.com/dequelabs/axe-core-gems/commit/8cb96af4818eeec8b368646607e6a6a2ab944078))


### Bug Fixes

* **capybara:** open browser based on passed symbol ([#303](https://github.com/dequelabs/axe-core-gems/issues/303)) ([c43ee49](https://github.com/dequelabs/axe-core-gems/commit/c43ee49744133ca22a32dde767d896b376c77b6c))
* **capybara:** open selected browser ([#305](https://github.com/dequelabs/axe-core-gems/issues/305)) ([311e4da](https://github.com/dequelabs/axe-core-gems/commit/311e4dabfe711c6d2bb0e37e113a86d4c4edcf6a))
* **capybara:** respect browser choice ([#307](https://github.com/dequelabs/axe-core-gems/issues/307)) ([bb0471d](https://github.com/dequelabs/axe-core-gems/commit/bb0471d6ce31c4accabe03de824053f644e6519a))
* Update axe-core to v4.6.3 ([#298](https://github.com/dequelabs/axe-core-gems/issues/298)) ([4dbab74](https://github.com/dequelabs/axe-core-gems/commit/4dbab7457b270180c1ae4d5917128dd330aaf0bb))
* **watir:** spawn firefox windows on windows ([#306](https://github.com/dequelabs/axe-core-gems/issues/306)) ([74de72f](https://github.com/dequelabs/axe-core-gems/commit/74de72f3074559b0d9ab3b3f62e10017010ac20a))

## [4.7.0](https://github.com/dequelabs/axe-core-gems/compare/v4.6.1...v4.7.0) (2023-04-27)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "axe-core-gems",
"version": "4.7.0",
"version": "5.0.0",
"license": "MPL-2.0",
"private": true,
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions packages/axe-core-api/e2e/selenium/spec/api_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

options = Selenium::WebDriver::Chrome::Options.new
# options.add_argument('--headless')
options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
$driver = Selenium::WebDriver.for :chrome, options: options

Run = Axe::API::Run
Expand Down
2 changes: 1 addition & 1 deletion packages/axe-core-api/lib/axe/api/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def analyze_post_43x(page, lib)
throw partial_results if partial_results.respond_to?("key?") and partial_results.key?("errorMessage")
results = within_about_blank_context(page) { |page|
partial_res_str = partial_results.to_json
size_limit = 20_000_000
size_limit = 10_000_000
while not partial_res_str.empty? do
chunk_size = size_limit
chunk_size = partial_res_str.length if chunk_size > partial_res_str.length
Expand Down
14 changes: 7 additions & 7 deletions packages/axe-core-api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/axe-core-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "axe-core-api",
"license": "MPL-2.0",
"dependencies": {
"axe-core": "^4.7.0"
"axe-core": "^4.7.2"
}
}
5 changes: 2 additions & 3 deletions packages/axe-core-capybara/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ The configure method takes 1 optional argument as a [symbol][] and a configurat

The optional argument is a browser name for `capybara`. The valid browser names are:
- `:firefox` (default)
- `:chrome`
- `:safari`
- `:chrome`

> Note: Please ensure respective drivers (eg: [`geckodriver`][]) are installed in your machine.

Expand Down Expand Up @@ -66,4 +65,4 @@ bundle exec rspec
[axe API]: https://github.com/dequelabs/axe-core/blob/develop/doc/API.md
[Capybara Webdriver]: https://github.com/teamcapybara/capybara/
[`geckodriver`]: https://github.com/mozilla/geckodriver/releases
[symbol]: https://ruby-doc.org/core-2.5.0/Symbol.html
[symbol]: https://ruby-doc.org/core-2.5.0/Symbol.html
2 changes: 1 addition & 1 deletion version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# this version is used by all the packages

module AxeCoreGems
VERSION = "4.7.0"
VERSION = "5.0.0"
end
Loading