chore: update CI workflows and configuration files

- Removed optional dependency installation commands from README.md for clarity.
- Updated renovate.json to extend additional configurations for GitHub Action digests.
- Simplified vitest.config.ts by consolidating comments and maintaining coverage settings.
- Adjusted Node.js version specifications in GitHub Actions workflows to use integers instead of strings and added `persist-credentials: false` for security.
This commit is contained in:
2026-06-21 16:16:23 -04:00
parent f16b44ff87
commit ec1f9d7272
6 changed files with 38 additions and 42 deletions
+3 -5
View File
@@ -1,10 +1,8 @@
name: Bump Hugo Version
on:
# Run every 3 hours
schedule:
- cron: "0 */3 * * *"
# Allow manual trigger
workflow_dispatch:
permissions:
@@ -17,14 +15,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: "24"
node-version: 24
- name: Get current package version
id: current
+8 -6
View File
@@ -29,15 +29,16 @@ jobs:
os: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: "24"
node-version: 24
registry-url: "https://registry.npmjs.org"
package-manager-cache: false
- name: Install dependencies
run: npm ci
@@ -61,15 +62,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: "24"
node-version: 24
registry-url: "https://registry.npmjs.org"
package-manager-cache: false
- name: Install dependencies
run: npm ci
+25 -15
View File
@@ -16,13 +16,15 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ["22", "24", "26"]
node: [22, 24, 26]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: ${{ matrix.node }}
cache: "npm"
@@ -56,13 +58,15 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: ["22", "24", "26"]
node: [22, 24, 26]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: ${{ matrix.node }}
cache: "npm"
@@ -92,12 +96,14 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: "24"
node-version: 24
cache: "npm"
- name: Install dependencies
@@ -125,12 +131,14 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: "24"
node-version: 24
cache: "npm"
- name: Install dependencies
@@ -206,12 +214,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # ratchet:actions/checkout@v7
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # ratchet:actions/setup-node@v6
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
with:
node-version: "24"
node-version: 24
cache: "npm"
- name: Install dependencies
-2
View File
@@ -309,8 +309,6 @@ This usually means optional dependencies were not installed. Reinstall with opti
```sh
npm install --include=optional
pnpm install --config.optional=true
yarn config set ignore-optional false && yarn install
```
If your environment intentionally omits optional dependencies, set `HUGO_BIN_PATH` instead.
+1 -1
View File
@@ -1,4 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:recommended"]
"extends": ["config:recommended", ":configMigration", "helpers:pinGitHubActionDigests"]
}
+1 -13
View File
@@ -2,28 +2,16 @@ import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
// Run tests in Node environment
environment: "node",
// Test file patterns
include: ["tests/**/*.test.ts"],
// Don't show noisy Hugo output unless the test fails
silent: "passed-only",
// Coverage configuration
silent: "passed-only", // Don't show noisy Hugo output unless the test fails
coverage: {
provider: "v8",
reporter: ["text", "json", "html"],
include: ["src/**/*.ts"],
exclude: ["src/generated/**", "src/**/*.d.ts", "**/*.test.ts", "scripts/**"],
},
// Timeout for integration tests (some may be slow)
testTimeout: 30000,
// Vitest 4: avoid forks on macOS (can produce kill EPERM on teardown) and
// keep files sequential to reduce contention around Hugo + temp dirs.
pool: "threads",
fileParallelism: false,
},