Skip to content

Commit

Permalink
ci: auto patch-release every 2 weeks (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnoC authored and michael-siek committed Sep 27, 2023
1 parent 9af666e commit 7997b3c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/auto-patch-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Automatically create patch release every 2 weeks
on:
schedule:
# Run every Friday right before midnight
- cron: '59 23 * * 5'
jobs:
create_patch_release:
uses: dequelabs/axe-api-team/.github/workflows/auto-patch-release.yml
secrets: inherit
with:
release-command: npx standard-version --release-as=patch
release-branch: master
default-branch: develop
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

0 comments on commit 7997b3c

Please sign in to comment.