Remove pre-commit hook and add CI workflow for automated testing

This commit is contained in:
Nebel 2025-01-06 11:19:23 +09:00
parent 3f0b8c4ca8
commit a3fc8c6700
Signed by: nebel
GPG key ID: 79807D08C6EF6460
3 changed files with 12 additions and 5 deletions

View file

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

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

@ -0,0 +1,12 @@
name: ci
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install
run: npm ci
- name: Test
run: npm test

View file

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