ci: add stuff

このコミットが含まれているのは:
sinkaroid 2022-06-14 22:44:33 +07:00
コミット 0ff771fb4b
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: A7DF4E245FDD8159
3個のファイルの変更30行の追加5行の削除

ファイルの表示

@ -28,7 +28,4 @@ jobs:
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run ci
run: npm run build

28
.github/workflows/nhentai.yml vendored ノーマルファイル
ファイルの表示

@ -0,0 +1,28 @@
name: Nhentai test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Test
run: npm run test:nhentai

ファイルの表示

@ -13,7 +13,7 @@
"lint": "npx eslint . --ext .ts",
"lint:fix": "npx eslint . --fix",
"postinstall": "npm run build",
"ci": "npx start-server-and-test http://localhost:3000"
"test:nhentai": "npx start-server-and-test 3000 \"curl -v http://localhost:3000/nhentai/get?book=177013 | jq '.'\""
},
"keywords": [],
"author": "sinkaroid",