Skip to content

Commit 9e76f64

Browse files
authored
Merge pull request #424 from dequelabs/not-release
Release v4.8.1
2 parents 48417ac + d207900 commit 9e76f64

29 files changed

+1338
-803
lines changed

.circleci/config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ workflows:
7474
- dependencies_npm
7575
filters:
7676
branches:
77-
only: develop
77+
only:
78+
- develop
79+
- release
7880
- release:
7981
context: html-tools
8082
requires:

.dependabot/config.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "monthly"
8+
open-pull-requests-limit: 10
9+
commit-message:
10+
prefix: "chore"
11+
groups:
12+
# Any updates not caught by the group config will get individual PRs
13+
gha-low-risk:
14+
update-types:
15+
- "minor"
16+
- "patch"
17+
18+
- package-ecosystem: "npm"
19+
directory: "/"
20+
schedule:
21+
interval: "monthly"
22+
open-pull-requests-limit: 10
23+
commit-message:
24+
prefix: "chore"
25+
ignore:
26+
# Handled separately by its own workflow
27+
- dependency-name: "axe-core"
28+
groups:
29+
# Any updates not caught by the group config will get individual PRs
30+
npm-low-risk:
31+
update-types:
32+
- "minor"
33+
- "patch"
34+
35+
- package-ecosystem: "maven"
36+
directory: "/"
37+
schedule:
38+
interval: "monthly"
39+
open-pull-requests-limit: 10
40+
commit-message:
41+
prefix: "chore"
42+
ignore:
43+
# TODO: https://github.com/dequelabs/axe-core-maven-html/issues/378
44+
- dependency-name: "org.seleniumhq.selenium:selenium-java"
45+
versions: [">=4.14.0"]
46+
groups:
47+
# Any updates not caught by the group config will get individual PRs
48+
maven-low-risk:
49+
update-types:
50+
- "minor"
51+
- "patch"

.github/scripts/prepare_release.sh

100644100755
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ set -e
66
releaseLevel="$1"
77

88
oldVersion="$(node -pe 'require("./package.json").version')"
9-
npx standard-version --release-as "$releaseLevel" --skip.commit=true --skip.changelog=true --skip.tag=true
109

11-
cd selenium
12-
npx standard-version --release-as "$releaseLevel" --skip.commit=true --skip.changelog=true --skip.tag=true
13-
cd ..
10+
# TODO: standard-version is now deprecated: https://github.com/dequelabs/axe-core-maven-html/issues/366
11+
# If no release level is specified, let standard-version handle versioning
12+
if [ -z "$releaseLevel" ]
13+
then
14+
npx standard-version --skip.commit=true --skip.changelog=true --skip.tag=true
15+
else
16+
npx standard-version --release-as "$releaseLevel" --skip.commit=true --skip.changelog=true --skip.tag=true
17+
fi
18+
1419
newVersion="$(node -pe 'require("./package.json").version')"
1520

1621

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create release candidate
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version-locked:
7+
type: boolean
8+
description: Prevent this action from creating a minor or major release
9+
default: true
10+
11+
jobs:
12+
create-release-candidate:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
steps:
16+
- uses: dequelabs/axe-api-team-public/.github/actions/create-release-candidate-v1@main
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
base: "master"
20+
head: "develop"
21+
release-script-path: "./.github/scripts/prepare_release.sh"
22+
version-locked: ${{ inputs.version-locked }}
23+
env:
24+
GH_TOKEN: ${{ secrets.GH_PROJECT_TOKEN }}

.github/workflows/create-release.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Semantic PR footer
2+
3+
on:
4+
pull_request:
5+
types:
6+
- opened
7+
- reopened
8+
- edited
9+
- synchronize
10+
11+
jobs:
12+
semantic-pr-footer:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 1
15+
steps:
16+
- uses: dequelabs/axe-api-team-public/.github/actions/semantic-pr-footer-v1@main

.github/workflows/semantic-pr-title.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ on:
1111
jobs:
1212
semantic-pr-title:
1313
runs-on: ubuntu-latest
14+
timeout-minutes: 1
1415
steps:
1516
- uses: dequelabs/semantic-pr-title@v1

.github/workflows/sync-master-develop.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: Sync master/develop branches
2+
23
on:
34
pull_request:
4-
types: [closed]
55
branches: master
6+
types: closed
7+
68
jobs:
79
create_sync_pull_request:
10+
if: github.event.pull_request.merged == true
811
runs-on: ubuntu-latest
9-
if: github.event.pull_request.merged == 'true'
12+
timeout-minutes: 1
1013
steps:
1114
- uses: dequelabs/action-sync-branches@v1
1215
with:

.github/workflows/tests.yml

Lines changed: 36 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
name: Tests
22

3-
on:
4-
push:
5-
branches:
6-
- "**" # all branches
7-
- "!master" # except master
8-
- "!develop" # except develop
3+
on: push
94

105
jobs:
116
build:
127
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
java: [8, 11, 17]
11+
timeout-minutes: 5
1312
steps:
14-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up JDK ${{ matrix.java }}
16+
uses: actions/setup-java@v4
17+
with:
18+
java-version: ${{ matrix.java }}
19+
distribution: "temurin"
20+
1521
- name: Cache npm dependencies
1622
uses: actions/cache@v3
1723
id: npm-cache
@@ -25,14 +31,10 @@ jobs:
2531
id: maven-cache
2632
with:
2733
path: ~/.m2/repository
28-
key: maven-cache-v1-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
34+
key: maven-cache-v1-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}-${{ matrix.java }}
2935
restore-keys: |
30-
maven-cache-v1-${{ runner.os }}-
31-
- name: Set up JDK 8
32-
uses: actions/setup-java@v3
33-
with:
34-
java-version: "8"
35-
distribution: "temurin"
36+
maven-cache-v1-${{ runner.os }}-${{ matrix.java }}
37+
3638
- name: Install Maven dependencies
3739
# https://github.com/actions/cache#skipping-steps-based-on-cache-hit
3840
if: steps.maven-cache.outputs.cache-hit != 'true'
@@ -41,15 +43,16 @@ jobs:
4143
# https://github.com/actions/cache#skipping-steps-based-on-cache-hit
4244
if: steps.npm-cache.outputs.cache-hit != 'true'
4345
run: |
44-
npm install &&
45-
npm --prefix=selenium install &&
46-
npm --prefix=playwright install
46+
npm ci &&
47+
npm --prefix=selenium ci &&
48+
npm --prefix=playwright ci
4749
4850
license-check:
4951
needs: build
5052
runs-on: ubuntu-latest
53+
timeout-minutes: 2
5154
steps:
52-
- uses: actions/checkout@v3
55+
- uses: actions/checkout@v4
5356
- name: Maven compile licenses
5457
run: mvn compile license:add-third-party
5558
- name: Check Selenium licenses
@@ -60,8 +63,12 @@ jobs:
6063
playwright-tests:
6164
needs: [license-check, build]
6265
runs-on: ubuntu-latest
66+
timeout-minutes: 5
67+
strategy:
68+
matrix:
69+
java: [8, 11, 17]
6370
steps:
64-
- uses: actions/checkout@v3
71+
- uses: actions/checkout@v4
6572
- uses: actions/cache@v3
6673
name: Restore npm cache
6774
id: npm-cache
@@ -75,9 +82,9 @@ jobs:
7582
id: maven-cache
7683
with:
7784
path: ~/.m2/repository
78-
key: maven-cache-v1-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
85+
key: maven-cache-v1-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}-${{ matrix.java }}
7986
restore-keys: |
80-
maven-cache-v1-${{ runner.os }}-
87+
maven-cache-v1-${{ runner.os }}-${{ matrix.java }}
8188
- name: Start fixture server
8289
run: npm --prefix=playwright start &
8390
- name: Run Playwright tests
@@ -86,9 +93,13 @@ jobs:
8693
selenium-tests:
8794
needs: [license-check, build]
8895
runs-on: ubuntu-latest
96+
timeout-minutes: 5
97+
strategy:
98+
matrix:
99+
java: [8, 11, 17]
89100
steps:
90-
- uses: actions/checkout@v3
91-
- uses: actions/setup-python@v4
101+
- uses: actions/checkout@v4
102+
- uses: actions/setup-python@v5
92103
- uses: actions/cache@v3
93104
name: Restore npm cache
94105
id: npm-cache
@@ -102,9 +113,9 @@ jobs:
102113
id: maven-cache
103114
with:
104115
path: ~/.m2/repository
105-
key: maven-cache-v1-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
116+
key: maven-cache-v1-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}-${{ matrix.java }}
106117
restore-keys: |
107-
maven-cache-v1-${{ runner.os }}-
118+
maven-cache-v1-${{ runner.os }}-${{ matrix.java }}
108119
- name: Start fixture server
109120
run: python -m http.server 8001 &
110121
working-directory: selenium/node_modules/axe-test-fixtures/fixtures

0 commit comments

Comments
 (0)