mirror of
https://github.com/kou029w/nodejs-hands-on.git
synced 2025-02-07 17:48:39 +00:00
Compare commits
No commits in common. "b349f2e7782711d4855ac1db5de1fdba40f2a21a" and "3f0b8c4ca806d020b85fe0e380d0a1fa9134b10a" have entirely different histories.
b349f2e778
...
3f0b8c4ca8
4 changed files with 6 additions and 23 deletions
4
.githooks/pre-commit
Executable file
4
.githooks/pre-commit
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
npm run format
|
||||
npm run test
|
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
@ -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
|
2
.github/workflows/github-pages.yml
vendored
2
.github/workflows/github-pages.yml
vendored
|
@ -1,7 +1,7 @@
|
|||
name: github-pages
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
branches: [main]
|
||||
jobs:
|
||||
main:
|
||||
permissions:
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"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 ."
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue