@reddoorla/maintenance 0.27.1 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/bin.js +17 -34
- package/dist/cli/bin.js.map +1 -1
- package/dist/cli/commands/audit.js +10 -0
- package/dist/cli/commands/audit.js.map +1 -1
- package/dist/index.js +13 -31
- package/dist/index.js.map +1 -1
- package/dist/recipes/sync-configs.js +3 -31
- package/dist/recipes/sync-configs.js.map +1 -1
- package/package.json +2 -2
package/dist/cli/bin.js
CHANGED
|
@@ -1758,6 +1758,16 @@ test("a11y across configured routes", async ({ page }) => {
|
|
|
1758
1758
|
const violations = [];
|
|
1759
1759
|
for (const { path, name } of pages) {
|
|
1760
1760
|
await page.goto(path);
|
|
1761
|
+
// Snap CSS transitions/animations to their resting state before axe runs.
|
|
1762
|
+
// AnimateIn-style fixtures transition opacity 0->1; sampling mid-transition
|
|
1763
|
+
// makes axe compute color-contrast against semi-transparent text, yielding a
|
|
1764
|
+
// flaky "serious" color-contrast violation (~1/3 of runs on /dev/animate-in).
|
|
1765
|
+
// Disabling transitions/animations forces the final, rendered state
|
|
1766
|
+
// deterministically -- which is also what users (and prefers-reduced-motion
|
|
1767
|
+
// users) actually see, so it's the correct thing to assert.
|
|
1768
|
+
await page.addStyleTag({
|
|
1769
|
+
content: "*,*::before,*::after{transition:none!important;animation:none!important;}",
|
|
1770
|
+
});
|
|
1761
1771
|
const results = await new AxeBuilder({ page })
|
|
1762
1772
|
.withTags(["wcag2a","wcag2aa","wcag21a","wcag21aa","wcag22aa"])
|
|
1763
1773
|
.analyze();
|
|
@@ -2269,32 +2279,9 @@ on:
|
|
|
2269
2279
|
pull_request:
|
|
2270
2280
|
push:
|
|
2271
2281
|
branches: [main]
|
|
2272
|
-
permissions:
|
|
2273
|
-
contents: read
|
|
2274
2282
|
jobs:
|
|
2275
2283
|
ci:
|
|
2276
|
-
|
|
2277
|
-
steps:
|
|
2278
|
-
- uses: actions/checkout@v4
|
|
2279
|
-
- uses: pnpm/action-setup@v4
|
|
2280
|
-
- uses: actions/setup-node@v4
|
|
2281
|
-
with:
|
|
2282
|
-
node-version: 22
|
|
2283
|
-
cache: pnpm
|
|
2284
|
-
- run: pnpm install --frozen-lockfile
|
|
2285
|
-
- run: pnpm exec prettier --check .
|
|
2286
|
-
- run: pnpm exec eslint .
|
|
2287
|
-
- run: pnpm exec svelte-kit sync && pnpm exec svelte-check --tsconfig ./tsconfig.json
|
|
2288
|
-
- run: pnpm build
|
|
2289
|
-
- run: pnpm exec playwright install --with-deps chromium
|
|
2290
|
-
- run: pnpm exec reddoor-maint audit --only a11y --fail-on-violations
|
|
2291
|
-
- name: Test (if present)
|
|
2292
|
-
run: |
|
|
2293
|
-
if node -e "process.exit(require('./package.json').scripts?.test ? 0 : 1)"; then
|
|
2294
|
-
pnpm test
|
|
2295
|
-
else
|
|
2296
|
-
echo "no test script \u2014 skipping"
|
|
2297
|
-
fi
|
|
2284
|
+
uses: reddoorla/.github/.github/workflows/ci.yml@78c4da64b675f0f474961f12715f2a4c09d46eb5 # v1.0.0
|
|
2298
2285
|
`
|
|
2299
2286
|
};
|
|
2300
2287
|
var renovateAction = {
|
|
@@ -2310,7 +2297,7 @@ jobs:
|
|
|
2310
2297
|
runs-on: ubuntu-latest
|
|
2311
2298
|
steps:
|
|
2312
2299
|
- uses: actions/checkout@v4
|
|
2313
|
-
- uses: renovatebot/github-action@
|
|
2300
|
+
- uses: renovatebot/github-action@v46.1.14
|
|
2314
2301
|
with:
|
|
2315
2302
|
token: \${{ secrets.RENOVATE_TOKEN }}
|
|
2316
2303
|
env:
|
|
@@ -2322,12 +2309,7 @@ var renovateConfig = {
|
|
|
2322
2309
|
path: "renovate.json",
|
|
2323
2310
|
contents: `{
|
|
2324
2311
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
2325
|
-
"extends": ["config
|
|
2326
|
-
"schedule": ["before 7am on monday"],
|
|
2327
|
-
"packageRules": [
|
|
2328
|
-
{ "matchUpdateTypes": ["patch", "minor"], "automerge": true, "platformAutomerge": true },
|
|
2329
|
-
{ "matchUpdateTypes": ["major"], "automerge": false }
|
|
2330
|
-
]
|
|
2312
|
+
"extends": ["github>reddoorla/.github:renovate-config"]
|
|
2331
2313
|
}
|
|
2332
2314
|
`
|
|
2333
2315
|
};
|
|
@@ -2953,6 +2935,7 @@ function makeGitHub(deps) {
|
|
|
2953
2935
|
|
|
2954
2936
|
// src/recipes/self-updating/index.ts
|
|
2955
2937
|
var SELF_UPDATING_CONFIGS = ["ci", "renovate-action", "renovate-config"];
|
|
2938
|
+
var REQUIRED_CHECK = "ci / ci";
|
|
2956
2939
|
function resultOf(site, status, notes, commits = []) {
|
|
2957
2940
|
return { recipe: "self-updating", site: siteLabel(site), status, commits, notes };
|
|
2958
2941
|
}
|
|
@@ -3019,9 +3002,9 @@ async function selfUpdating(site, deps = {}) {
|
|
|
3019
3002
|
await github.enableRepoAutoMerge(repo);
|
|
3020
3003
|
actions.push("enabled auto-merge");
|
|
3021
3004
|
}
|
|
3022
|
-
if (!(await github.branchProtectionContexts(repo, base)).includes(
|
|
3023
|
-
await github.protectBranch(repo, base, [
|
|
3024
|
-
actions.push(`required
|
|
3005
|
+
if (!(await github.branchProtectionContexts(repo, base)).includes(REQUIRED_CHECK)) {
|
|
3006
|
+
await github.protectBranch(repo, base, [REQUIRED_CHECK]);
|
|
3007
|
+
actions.push(`required "${REQUIRED_CHECK}" check on ${base}`);
|
|
3025
3008
|
}
|
|
3026
3009
|
if (!await github.secretExists(repo, "RENOVATE_TOKEN")) {
|
|
3027
3010
|
await github.setRepoSecret(repo, "RENOVATE_TOKEN", renovateToken);
|