Skip to content

Commit 2d4bdff

Browse files
Use pa11y ^9.0.1 and its Node support (20, 22, 24) (#165)
* Use `pa11y ^9.0.1` and its Node support (`20`, `22`, `24`) * Use latest versions of `actions/checkout` and `actions/setup-node` * Upgrade `mongodb-github-action` to `1.12` from `1.5` * Disable AppArmor with `pa11y`'s incantation * Add test for Mongo v7
1 parent 2af525e commit 2d4bdff

File tree

5 files changed

+680
-790
lines changed

5 files changed

+680
-790
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
publish:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
16+
- uses: actions/checkout@v5
17+
- uses: actions/setup-node@v6
1818
with:
19-
node-version: 18
19+
node-version: 20
2020
registry-url: https://registry.npmjs.org
2121
- run: npm ci
2222

.github/workflows/tests.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
lint:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
11+
- uses: actions/checkout@v5
12+
- uses: actions/setup-node@v6
1313
with:
14-
node-version: 18
14+
node-version: 20
1515
- run: npm ci
1616
- run: npm run lint
1717

@@ -20,24 +20,31 @@ jobs:
2020
runs-on: ubuntu-latest
2121
strategy:
2222
matrix:
23-
node: [18, 20]
23+
node: [20, 22, 24]
2424
mongo: [latest]
2525
include:
26-
- { node: 18, mongo: 6.0.11 }
27-
- { node: 18, mongo: 5.0.22 }
28-
- { node: 18, mongo: 4.4.25 }
29-
- { node: 18, mongo: 3.6.23 }
30-
- { node: 18, mongo: 2.6.12 }
26+
- { node: 20, mongo: 7.0.25 }
27+
- { node: 20, mongo: 6.0.11 }
28+
- { node: 20, mongo: 5.0.22 }
29+
- { node: 20, mongo: 4.4.25 }
30+
- { node: 20, mongo: 3.6.23 }
31+
- { node: 20, mongo: 2.6.12 }
3132
steps:
32-
- uses: actions/checkout@v4
33-
- uses: actions/setup-node@v4
33+
- uses: actions/checkout@v5
34+
- uses: actions/setup-node@v6
3435
with:
3536
node-version: ${{ matrix.node }}
37+
38+
- name: Disable AppArmor User Namespace Restrictions, required to open
39+
Chrome on Ubuntu 23.10+ without --no-sandbox). See
40+
https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md.
41+
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
42+
3643
- run: npm ci
3744
- run: npm run test:unit
3845

3946
- name: Supply MongoDB ${{ matrix.mongo }}
40-
uses: supercharge/mongodb-github-action@1.5.0
47+
uses: supercharge/mongodb-github-action@1.12.0
4148
with:
4249
mongodb-version: ${{ matrix.mongo }}
4350
- name: Supply integration test configuration file

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18
1+
20

0 commit comments

Comments
 (0)