ci: add stuff
このコミットが含まれているのは:
コミット
0ff771fb4b
|
@ -29,6 +29,3 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: npm run ci
|
|
|
@ -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": "npx eslint . --ext .ts",
|
||||||
"lint:fix": "npx eslint . --fix",
|
"lint:fix": "npx eslint . --fix",
|
||||||
"postinstall": "npm run build",
|
"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": [],
|
"keywords": [],
|
||||||
"author": "sinkaroid",
|
"author": "sinkaroid",
|
||||||
|
|
読み込み中…
新しいイシューから参照