Skip to content

Commit

Permalink
Merge pull request dequelabs#649 from dequelabs/release-1674151576
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek authored Jan 23, 2023
2 parents f382595 + 9d122b0 commit 4abdc82
Show file tree
Hide file tree
Showing 47 changed files with 10,925 additions and 2,083 deletions.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ jobs:
- restore_dependency_cache
# Re-build packages, ensuring packages/webdriverjs/dist exists.
- run: npx lerna run prepare
# required for browser-driver-manager
- run: sudo apt-get update -y
- run: cd packages/cli && npx browser-driver-manager@1.0.4 install chrome chromedriver --verbose
# lerna link after installing the latest version of chromedriver, as we depend on webdriverJS
- run: cd packages/cli && npx lerna link
Expand All @@ -143,6 +145,8 @@ jobs:
- checkout
- restore_dependency_cache
- run: npm run build --prefix=packages/puppeteer
# required for browser-driver-manager
- run: sudo apt-get update -y
- run: cd packages/puppeteer && npx browser-driver-manager@1.0.4 install chrome chromedriver --verbose
- run: npm run coverage --prefix=packages/puppeteer

Expand All @@ -151,6 +155,8 @@ jobs:
steps:
- checkout
- restore_dependency_cache
# required for browser-driver-manager
- run: sudo apt-get update -y
- run: cd packages/webdriverjs && npx browser-driver-manager@1.0.4 install chrome chromedriver --verbose
- run: npm --prefix=packages/webdriverjs run build
- run: npm run coverage --prefix=packages/webdriverjs
Expand Down Expand Up @@ -195,7 +201,7 @@ jobs:

playwright:
docker:
- image: mcr.microsoft.com/playwright:bionic
- image: mcr.microsoft.com/playwright:v1.29.0
environment:
NODE_ENV: development
working_directory: ~/axe-core-npm
Expand Down
43 changes: 5 additions & 38 deletions .github/workflows/semantic-pr-title.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,15 @@
name: Semantic PR Title
name: Semantic PR title

on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited
- synchronize

jobs:
validate:
semantic-pr-title:
runs-on: ubuntu-latest
steps:
- name: Check PR title
uses: actions/github-script@v6
env:
TITLE: ${{ github.event.pull_request.title }}
with:
script: |
const { TITLE } = process.env
const types = [
'feat',
'fix',
'perf',
'style',
'docs',
'refactor',
'test',
'build',
'ci',
'chore',
'Merge',
'Revert',
'Release'
]
console.log('Validating PR title: "%s"', TITLE)
for (const type of types) {
if (TITLE.startsWith(type)) {
console.log('Title matches conventional commits (type: "%s").', type)
return
}
}
const error = new Error('PR title does not follow conventional commits.\n\nPlease refer to https://www.conventionalcommits.org/en/v1.0.0')
error.stack = [] // Clean the error stack, it's useless here.
throw error
- uses: dequelabs/semantic-pr-title@v1
37 changes: 37 additions & 0 deletions .github/workflows/update-axe-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Update axe-core

on: [workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- id: update
uses: dequelabs/update-axe-core@v1
- id: type
run: |
CommitType=""
if [ "${{ steps.update.outputs.patch_version_updated }}" == "true" ]; then
CommitType="fix"
elif [ "${{ steps.update.outputs.minor_version_updated }}" == "true" ]; then
CommitType="feat"
elif [ "${{ steps.update.outputs.major_version_updated }}" == "true" ]; then
CommitType="feat"
fi
echo "type=$CommitType" >>"$GITHUB_OUTPUT"
- name: Open PR
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.PAT }}
commit-message: '${{ steps.type.outputs.type }}: Update axe-core to v${{ steps.update.outputs.version }}'
branch: auto-update-axe-core
base: develop
title: '${{ steps.type.outputs.type }}: Update axe-core to v${{ steps.update.outputs.version }}'
body: |
This patch updates version of [`axe-core`](https://npmjs.org/axe-core) to v${{ steps.update.outputs.version }}.
This PR was opened by a robot :robot: :tada:.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,24 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [4.6.0](https://github.com/dequelabs/axe-core-npm/compare/v4.5.2...v4.6.0) (2023-01-19)


### Bug Fixes

* **playwright:** update playwright to support updated types ([#635](https://github.com/dequelabs/axe-core-npm/issues/635)) ([1339ec7](https://github.com/dequelabs/axe-core-npm/commit/1339ec7199fd654f6116ecaf824274a163cf3a73))
* use `SerialContextObject` type instead of `ContextObject` ([#632](https://github.com/dequelabs/axe-core-npm/issues/632)) ([630b545](https://github.com/dequelabs/axe-core-npm/commit/630b545469b8e973e2aa9c7d879f9c120ce8a4d9))


### Features

* support shadow dom selectors ([#619](https://github.com/dequelabs/axe-core-npm/issues/619)) ([6065b56](https://github.com/dequelabs/axe-core-npm/commit/6065b562adf289341033a7233426ba3dcfb8a24b))
* Update axe-core to v4.6.1 ([#633](https://github.com/dequelabs/axe-core-npm/issues/633)) ([8bab5b2](https://github.com/dequelabs/axe-core-npm/commit/8bab5b23b3653a6a0603f10d889e22418a4fff3e))





## [4.5.2](https://github.com/dequelabs/axe-core-npm/compare/v4.5.1...v4.5.2) (2022-11-15)


Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"packages/webdriverjs/tests/example",
"axe_core_test"
],
"version": "4.5.2"
"version": "4.6.0"
}
12 changes: 12 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [4.6.0](https://github.com/dequelabs/axe-core-npm/compare/v4.5.2...v4.6.0) (2023-01-19)


### Features

* support shadow dom selectors ([#619](https://github.com/dequelabs/axe-core-npm/issues/619)) ([6065b56](https://github.com/dequelabs/axe-core-npm/commit/6065b562adf289341033a7233426ba3dcfb8a24b))
* Update axe-core to v4.6.1 ([#633](https://github.com/dequelabs/axe-core-npm/issues/633)) ([8bab5b2](https://github.com/dequelabs/axe-core-npm/commit/8bab5b23b3653a6a0603f10d889e22418a4fff3e))





## [4.5.2](https://github.com/dequelabs/axe-core-npm/compare/v4.5.1...v4.5.2) (2022-11-15)


Expand Down
Loading

0 comments on commit 4abdc82

Please sign in to comment.