Compare commits

..

4 commits

4 changed files with 23 additions and 6 deletions

View file

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

22
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,22 @@
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,7 +9,6 @@
"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 ."
}, },