Skip to content

Commit

Permalink
Merge branch 'develop' into npm-workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
dbjorge committed Sep 14, 2023
2 parents faf4bbd + a3c59b7 commit 228d9db
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/auto-patch-release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
name: Automatically create patch release every 2 weeks
on:
schedule:
# Run every Friday right before midnight
- cron: '59 23 * * 5'
workflow_dispatch:
jobs:
create_patch_release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Determine if we skip cancel checks
id: skip-checks
shell: bash
# Skip checks if we are not a scheduled run
run: echo value=$(test ${{ github.event_name }} != schedule && echo true || echo false) >> "$GITHUB_OUTPUT"

- 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 }}
skip_checks: ${{ steps.skip-checks.outputs.value }}
slack_webhook: ${{ secrets.SLACK_WEBHOOK }}
odd_release: 'true'
release-command: bash .github/scripts/prepare_release.sh
version-json: lerna.json
release-branch: master
default-branch: develop
2 changes: 2 additions & 0 deletions packages/react/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ export default function reactAxe(
return checkAndReport(document.body, timeout);
}

reactAxe.logToConsole = logToConsole;

if (typeof module === 'object') {
exports = module.exports = reactAxe;
}
6 changes: 5 additions & 1 deletion packages/react/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { mount } from 'enzyme';
import sinon from 'sinon';
import { assert } from 'chai';
import axe from 'axe-core';
import reactAxe from '../dist/index.js';
import reactAxe, { logToConsole } from '../dist/index.js';
import cache from '../dist/cache.js';

class App extends React.Component {
Expand Down Expand Up @@ -541,4 +541,8 @@ describe(`@axe-core/react using react@${React.version}`, () => {
}
});
});

it('check to make sure logToConsole is exported', () => {
assert.isFunction(logToConsole);
});
});
2 changes: 1 addition & 1 deletion packages/webdriverjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const { Builder } = require('selenium-webdriver');
const chrome = require('selenium-webdriver/chrome');

(async () => {
const driver = Builder()
const driver = new Builder()
.forBrowser('chrome')
.setChromeOptions(new chrome.Options().headless())
.build();
Expand Down

0 comments on commit 228d9db

Please sign in to comment.