From b343620de651fce1eb8fd0ad604756fd9176fd46 Mon Sep 17 00:00:00 2001 From: Elliot Blackburn Date: Thu, 28 Dec 2023 18:27:28 +0000 Subject: [PATCH] increase test timeout for ci --- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 6 +++--- package.json | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a287728..e7a0360 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,4 +23,4 @@ jobs: - name: npm ci, build, and test run: | npm ci - npm test \ No newline at end of file + npm run test-ci \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c302ca3..7670db5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,8 +12,8 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 20 - - run: npm install - - run: npm test + - run: npm ci + - run: npm run test-ci publish-npm: needs: build @@ -24,7 +24,7 @@ jobs: with: node-version: 20 registry-url: https://registry.npmjs.org/ - - run: npm install + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/package.json b/package.json index f1e3c80..030d3d1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "scripts": { "lint": "prettier --trailing-comma es5 --single-quote --list-different '{src,tests,bin}/**/*.js'", "lint-fix": "prettier --trailing-comma es5 --single-quote --list-different '{src,tests,bin}/**/*.js' --write", - "test": "mocha ./tests/index.js" + "test": "mocha ./tests/index.js", + "test-ci": "mocha ./tests/index.js --timeout 180000" }, "bin": { "mdpdf": "bin/index.js"