ci: add stuff
このコミットが含まれているのは:
コミット
0ff771fb4b
|
@ -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
|
|
@ -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",
|
||||
|
|
読み込み中…
新しいイシューから参照