diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b787df..f7b99ec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,4 @@ jobs: run: npm run lint - name: Build - run: npm run build - - - name: Test - run: npm run ci \ No newline at end of file + run: npm run build \ No newline at end of file diff --git a/.github/workflows/nhentai.yml b/.github/workflows/nhentai.yml new file mode 100644 index 0000000..cab946a --- /dev/null +++ b/.github/workflows/nhentai.yml @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 554a241..0a88834 100644 --- a/package.json +++ b/package.json @@ -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",