From 0abc70564746496eb211bbd951041b4655aec268 Mon Sep 17 00:00:00 2001 From: Dmitriy Mozgovoy Date: Wed, 19 Apr 2023 20:09:31 +0300 Subject: [PATCH] chore(ci): use package-lock in test & build github actions; (#5663) * chore(test): use local typescript version for dtslint; --- .github/workflows/ci.yml | 2 +- .github/workflows/pr.yml | 2 +- package.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd9a278676..6fba908e30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,5 +26,5 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: npm - - run: npm install + - run: npm ci - run: npm test diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index ff52eb0cd2..d573f578c6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -31,7 +31,7 @@ jobs: with: node-version: 16 cache: npm - - run: npm install + - run: npm ci - name: Prepare release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 9c4d1273f6..a32f5b2080 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "scripts": { "test": "npm run test:eslint && npm run test:mocha && npm run test:karma && npm run test:dtslint && npm run test:exports", "test:eslint": "node bin/ssl_hotfix.js eslint lib/**/*.js", - "test:dtslint": "node bin/ssl_hotfix.js dtslint", + "test:dtslint": "dtslint --localTs node_modules/typescript/lib", "test:mocha": "node bin/ssl_hotfix.js mocha test/unit/**/*.js --timeout 30000 --exit", "test:exports": "node bin/ssl_hotfix.js mocha test/module/test.js --timeout 30000 --exit", "test:karma": "node bin/ssl_hotfix.js cross-env LISTEN_ADDR=:: karma start karma.conf.cjs --single-run", @@ -203,4 +203,4 @@ "@commitlint/config-conventional" ] } -} \ No newline at end of file +}