Compare commits

..

No commits in common. "b349f2e7782711d4855ac1db5de1fdba40f2a21a" and "3f0b8c4ca806d020b85fe0e380d0a1fa9134b10a" have entirely different histories.

4 changed files with 6 additions and 23 deletions

4
.githooks/pre-commit Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
set -e
npm run format
npm run test

View file

@ -1,22 +0,0 @@
name: ci
on:
push:
jobs:
test:
name: Node.js v${{ matrix.node-version }}
strategy:
matrix:
node-version:
- 22
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install
run: npm ci
- name: Test
run: npm test

View file

@ -1,7 +1,7 @@
name: github-pages name: github-pages
on: on:
push: push:
branches: main branches: [main]
jobs: jobs:
main: main:
permissions: permissions:

View file

@ -9,6 +9,7 @@
"templates/*" "templates/*"
], ],
"scripts": { "scripts": {
"prepare": "git config core.hooksPath .githooks",
"test": "find src -name '*.md' -exec markdown-link-check {} + && node --test 'src/**/*.test.js' && npm test --workspaces", "test": "find src -name '*.md' -exec markdown-link-check {} + && node --test 'src/**/*.test.js' && npm test --workspaces",
"format": "prettier --write ." "format": "prettier --write ."
}, },