mirror of
https://github.com/kou029w/nodejs-hands-on.git
synced 2025-02-07 17:48:39 +00:00
Compare commits
4 commits
3f0b8c4ca8
...
b349f2e778
Author | SHA1 | Date | |
---|---|---|---|
b349f2e778 | |||
aef7a6e38c | |||
4206f38fe8 | |||
a3fc8c6700 |
4 changed files with 23 additions and 6 deletions
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
npm run format
|
||||
npm run test
|
22
.github/workflows/ci.yml
vendored
Normal file
22
.github/workflows/ci.yml
vendored
Normal 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
|
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,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 ."
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue